cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030K6T6 persistent memory

troy1818
Senior
Posted on July 18, 2015 at 15:11

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,

StaringL
5 REPLIES 5
Amel NASRI
ST Employee
Posted on July 22, 2015 at 17:30

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.

Posted on July 22, 2015 at 17:38

With or without removing the power?

The SRAM retains over a simple reset.

You could also journal a few entries in FLASH.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
troy1818
Senior
Posted on July 23, 2015 at 21:05

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,

StaringL

Posted on July 23, 2015 at 21:17

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.c

If 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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
troy1818
Senior
Posted on July 23, 2015 at 21:53

Hi Clive,

That is fantastic, thanks a lot !

It is just configuration data at startup so flash is fine 🙂

Regards,

StaringL