Store const in flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Store const in flash

678 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by guillaumeL on Thu Aug 02 12:56:34 MST 2012
Hi,

I need to program a EEPROM (I2C link) with a LPC1769 microcontroller.  EEPROM data is 32 kBytes long and I can't store it direclty in the RAM (not enough ressources). I find the solution to store it in a const variable table (directly store in Flash) 32Kbytes long  (example toto[32768]= {0x00,0x01,0x02 ..}; .The problem is if data change, I need to fill again the table with new value (values are from a .hex file).

I want to know if it is possible to ask the linker file to load the .hex file directly  in Flash(maybe changing the file format if necessary). In this case, I don't have to fill the table. I just need to recompile the source code to update data.

Regards,
0 Kudos
Reply
1 Reply

627 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Sun Aug 05 02:56:37 MST 2012
Hi guillaumeL,

look at Application Note AN11008. This might be the info you need.

http://www.lpcware.com/content/nxpfile/an11008-flash-based-non-volatile-storage-software

On our website www.lpcware.com a treasure of information can be found.
0 Kudos
Reply