Does anyone know wether the internal RAM contents of the STM32-microcontroller changes during a soft-reset respective a power on reset? It would be useful to know for sure that (for example) the RAM content will be reliable safe during a soft-reset and that the RAM will be erased by a power-on reset. Is anyone out there knowing something about the reset-behavior? Thank You very much in advance!
It's easy to change the project settings and make the RAM a couple of kB smaller. Then the last kB of the RAM will not be cleared by the startup code.
This memory can then be accessed by a pointer - possibly to a suitable struct.
And as noted - keep a good checksum on this data to differentiate between garbage from a cold power-on (or a crashing/trashing run) and valid data from a previous run.