lpcware

Store const in flash

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
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,

Outcomes