error: causes a section type conflict with

yeahtuna

Well-known member
I'm getting the following error during compiling. Any idea how to resolve it?
Code:
AudioStream.h:110:30: error: data causes a section type conflict with fb
  static DMAMEM audio_block_t data[num];

The fb variable is declared as:
Code:
#define PIXEL_SIZE uint16_t
#define RENDER_BUFFER_SIZE 800 * 200
DMAMEM PIXEL_SIZE fb[RENDER_BUFFER_SIZE] __attribute__((aligned(32)));  // used for rendering views
 
I'm getting the following error during compiling. Any idea how to resolve it?
Code:
AudioStream.h:110:30: error: data causes a section type conflict with fb
  static DMAMEM audio_block_t data[num];

The fb variable is declared as:
Code:
#define PIXEL_SIZE uint16_t
#define RENDER_BUFFER_SIZE 800 * 200
DMAMEM PIXEL_SIZE fb[RENDER_BUFFER_SIZE] __attribute__((aligned(32)));  // used for rendering views
Seems like removing a call to AudioMemory(4); resolves the issue, but I need to call AudioMemory(). Is there another workaround?


UPDATE:: Looks like if I change where I'm calling AudioMemory() I can get around the problem.
 
Last edited:
Back
Top