Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: deeaitch on April 07, 2009, 07:12:16 AM

Title: Write constans into memory section were .data is
Post by: deeaitch on April 07, 2009, 07:12:16 AM
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
Title: Re: Write constans into memory section were .data is
Post by: Andy Ayre on April 07, 2009, 08:25:15 AM
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
Title: Re: Write constans into memory section were .data is
Post by: deeaitch on April 07, 2009, 10:51:33 AM
Hi again Andy.

Ok, I will check alternative ways....

Thank you
/D