2018-08-16 03:00 PM
I am currently working with the MCU STM32F407ZET6 used in an embedded device. I am relatively new to this MCU, but I'd like to know if there is a persistent register that I can write some 32-bit value to it and it does not get erased if the MCU is turned off. Is there one? If so how do I write to it? Any reference manual and/or sample code?
My problem is that during stress tests of our device, sometimes after several hours the MCU crashes. But our current software must turn on and off the MCU constantly and we are limited with logs. So when the device crashes in the middle of the night for example, after few minutes it is turned off. So I have no logs and left in the woods to find out what has happened.
If there is a register mapped into memory that I can poke a value there and next time it reboots I could read from it, it would be very helpful.
This MCU has the flash memory, but it is too slow. These crashes happen fast and I have no time to erase and re-program flash with logs. This is why I thought a persistent register could be quite useful.
and leads or help is greatly appreciated.
thank you.
2018-08-17 02:53 PM
Test a lot 😉