Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

[gcc] linker script for data in eeprom/fram spi

2005-07-05 by Jaromir

Hello All,

I try used linker for automatic assigment adresses for data stored in fram (spi or i2c).
Its possible ?

I saw in WinAVR, that I can use macro like this:
    #define EEPROM__attribute__ ((section(".eeprom")))
next I can define variable:
    int number EEPROM;
and  "&number" return valid addres in eeprom.

My linker scipt is something like this:

MEMORY 
{
flash : ORIGIN = 0, LENGTH = 512K
ram : ORIGIN = 0x40000000, LENGTH = 32K
fram_spi : ORIGIN = 0x10000000, LENGTH = 8K
}
__stack_end__ = 0x40000000 + 32K - 4;
SECTIONS 
{ 

FRAM_SPI : 
{
*(.fram)
} >fram_spi
. = 0;
startup : 
{
*(.startup)
} >flash

But lpc21isp and philips isp  throw some errors:

lpc21isp(v1.27) : Record Type 04 not yet implemented - ignore?

philips flash utility:
"Code in Hex file exceeds Flash Limitations"
_________________________________________________________________
List sprawdzony skanerem poczty mks_vir ( http://www.mks.com.pl )


[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.