cancel
Showing results for 
Search instead for 
Did you mean: 

How to write and erase variables in internal memory of stm32f030c6 using standard pheripheral library?

LOKESH VASHISHTH
Associate II
 
8 REPLIES 8
AvaTar
Lead

What is "internal memory" ?

The SPL versions contain example for most use cases, did you check ???

flash

> flash

IAP

yes,

i only want to save and read value of variable(eg. uint16_t a 😉 in stm32f030c6.

like in EEPROM

You could have told in the first place, not just throw in some single words.

Still, I would think twice about that.

The MCU is a single bank design, code execution will stall while erasing/programming. Or you move the IAP code to RAM. The datasheet states 30ms as typical page erase time.

Pretty sure there are IAP examples in SPL code you can download for the F030, the sector layout is documented in the reference manual. Other thread here cover IAP as well.

The datasheet does not mention a guaranteed number of erase/program cycles, assume the standard 10.000. This will spell trouble for frequently changing data.

EEPROM emulation in STM32F0xx microcontrollers

I have found the answer.

EEPROM emulation in STM32F0xx microcontrollers (AN4061)

url link : https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32117.license=1549958726460.product=STSW-STM32117.version=1.0.0.html

here i found the solution

check the files , I am uploading it here

Thanks AvaTar for good response