2015-07-18 06:11 AM
Hi,
I would like to know if I can use this MCU in order to store some bytes in persistent memory area. I took a quick look at the datasheet but I did not see anything. Anyone know the best way to save some bytes to be used at next boot ? Need extra eeprom chip ?Regards,StaringL2015-07-22 08:30 AM
Hi rygelxvi,
May be you need to use the backup registers (RTC_BKPxR) that are implemented in the RTC domain and remain powered-on by VBAT when the VDD power is switched off.There are 5 x 32-bit backup registers.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-07-22 08:38 AM
With or without removing the power?
The SRAM retains over a simple reset.You could also journal a few entries in FLASH.2015-07-23 12:05 PM
Hi,
I would like to save about 350x8 bytes. The data must survive a power down - power up.Writing some page in flash would suffice I guess but I have never done this from runtime before. You have any examples of how this is done ?Regards,StaringL2015-07-23 12:17 PM
I'm not using Cortex-M0 parts. I suspect it works like all the other STM32
STM32F0-Discovery_FW_V1.0.0\Project\Peripheral_Examples\Flash_Program\main.cIf it's data that changes a lot, FLASH is probably not the way to go, but for device/board specific calibration data it's quite usable.2015-07-23 12:53 PM
Hi Clive,
That is fantastic, thanks a lot !It is just configuration data at startup so flash is fine :)Regards,StaringL