today, i have a question about the flash. We had a project, where we can save data into flash, using it like an eeprom.
Therefor we had a linkerscript.
Here is the beginning code:
Code: Select all
ENTRY(Reset_Handler)
MEMORY {
RAM (RWX) : ORIGIN = 0x20000000 , LENGTH = 20K
EXTSRAM (RWX) : ORIGIN = 0x68000000 , LENGTH = 0
FLASH (RX) : ORIGIN = 0x08000000 , LENGTH = 126K /* adjust to Device -- Flash Size -2k*/
EEMUL (RWX) : ORIGIN = 0x08000000+510K, LENGTH = 2K
}
_estack = ORIGIN(RAM)+LENGTH(RAM); /* end of the stack */
_seemul = ORIGIN(EEMUL); /* start of the eeprom emulation area */
_min_stack = 0x100; /* minimum stack space to reserve for the user app */
We found that script in www, it works fine. But i have no experience about that script language.
Now we switched to use Chibios, because we likes the idea behind a RT.
So my Question is, how i have to change the Chibios Linker scripts to use the flash for storage.
Regards,
Andre