Write constans into memory section were .data is

Started by deeaitch, April 07, 2009, 07:12:16 AM

Previous topic - Next topic

deeaitch

Hello.

In sbl_main.c, located in the installation package of FlashMagic (in the Ethernet bootloader folder), the CRP shall be set in flash memory according to:

const unsigned crp __attribute__((section(".ARM.__at_0x1FC"))) = CRP;

But even if I add a Flash memory section in the memory map file, the linker sais that the memory ares is overlapped by .data section.
Now, how do I write this constans data into the flash memory location 0x1FC were the rest of the bootloader code is located?
Btw, I am using Rowley CrossWorks IDE.

Regards
D

Andy Ayre

This is using the GCC compiler right? The bootloader project is for the Keil compiler so you will need to convert language extensions such as this to suit the GCC compiler.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

deeaitch

Hi again Andy.

Ok, I will check alternative ways....

Thank you
/D