Content originally posted in LPCWare by Rob65 on Wed May 29 08:33:03 MST 2013
Yes - in different ways.
There are some scratchpad registers in the RTC, these even allow you to keep some data valid while the power is removed (you do need a backup battery).
You can also write some data into the flash memory, this is then always available after a power on or a reset.
You can change the memory regions and the startup code to have some part of the RAM not being cleared when the startup code runs - in that case global variables in this region will keep the value that is in memory.
Note that this also means that on an initial startup you must make sure there are sensible values in here.
The first two solutions are described in the LPC17xx user manual, the last one is a bit more tricky; you will need to bypass the generated linked scripts from the LPCXpresso tools and check the Gnu documentation to understand how linker files work and dive a bit in the startup code.
Rob