hello can i store some variables in lpc17xx flash? i think it is possible because flash is a type of non volatile memory. i wanted to store some hardware related information into flash that may not be large. These variable should not change if application programs kept changing. can u point out the examples/ theory behind that.
Thanks in advance rahul
You need to refer to the manufacturer's documentation for the chip - NXP, in this case.
That will describe what (if any) facilities are available for the chip to program its own flash...
The chip has IAP support. And there is a user manual that does give you a lot of information.
You might use a pointer to a struct, in which case you don't have to worry about any linker configuration file for placing variables in the flash region.
Another thing is that you need a RAM copy when reprogramming a flash sector.