I want to define a variable whose value can survives a reset. Is it possible?
If you are talking about variables not initialized by compiler on startup then in IAR for example __no_init uint32_t var; or In Keil
__no_init uint32_t var;