I am using the LPC2148, which has a 8k RAM buffer for USB operations, but I am not using the USB interface, and instead want to use that memory for some of my larger buffers that are defined at compile time (global variables) to free up regular memory. I can, of course, use pointers, such as:
#define ucBuffer1 ((unsigned char *)USB_MEMORY_START)
#define ucBuffer2 ((unsigned char *)USB_MEMORY_START+100)
unsigned char ucBuffer1;
unsigned char ucBuffer2;
unsigned int var __attribute__ ((section(".bar")));
In either case, I cannot figure out for to create a section that the linker will use to locate these variables. I'm sure I'm missing something obvious... any help would be greatly appreciated!
Please sign in to leave a comment.