cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Flash (STM32F042G6)

Ss.61
Associate III

*How to save varibales or array of data in Internal memory on STM32F042G6

*Can i get some example to understand this thing more clear.

Thanks in advance.

3 REPLIES 3

You need to reserve a FLASH sector, erase it and then write to it. The procedure to do so is described in the FLASH section of RM. Please note that erasing and writing to FLASH takes significant time (see Datasheet), and during that time you cannot access the FLASH (including code execution).

JW

Thank you very much for your reply,

*can i get some sample code in stm32F0 family,

*The procedure is clear,

*if i get one example program will help me to proceed writing code.

The CubeF0​ package should have multiple HAL examples for several chips/boards.

T​he SPL also has examples if use that rather than HAL

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..