Place constant data into flash at specific address

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by salmandosersa on Thu Jun 09 07:49:53 MST 2016

I'm trying to place at the top of the flash a number of version software.
i already tried

const char test[]="HELLO";
and search the string into the .bin file and i couldn't find it.
I know this method don't put the string into a specific address.

I modify the Memory layout to
Flash   Location 0x0000 size 0x3000
Flash2 Location 0x3000 size 0x1000
__attribute__ ((section (".rodata.Flash2"))) const char test[]="HELLO";
didn't work.

I'm using LPC1115 LPCXpresso Board with LPCXpresso 8.1.4