Dmitry wrote:
Sorry, I missed your message...
to define no-load segment you have to write:
.section .sectionname, "ax", @nobits
int assembler or wrap it with __attribute__() in C.
then pass the section start address to the linker.
~d
Hi Dmitry,
Could you give an example of how to do it in C?
That's how I'm defining it right now... Where should thw "ax" and the
@nobits part be placed?
#define __flashdata__ __attribute__((section(".flashdata")))
const __flashdata__ struct
{
unsigned char data1[8];
unsigned long data2;
unsigned long data3;
} data_in_flash[500];
Thanks,
Ricardo