Skip to main content
Sany
Associate III
August 30, 2020
Question

STM32L031K6 - How to Store Variables in EEPROM?

  • August 30, 2020
  • 2 replies
  • 919 views

Hello!

I am new in STM32, forgot my stupid question...

How can i store a variable in EEPROM or flash?

I have a STM32L031K6 Nucleo board, and got my CC1101-868MHZ transceiver with interrupts to work.

I receive a unique address over RF, and want to store this client address, now i can't find any examples for storing...

is there any examples to store variables in EEPROM or flash?

Thanks guys!

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
August 30, 2020

NVM Operation code example in the Appendix in RM? Or the same in SnippetsL0?

JW

Mike_ST
Technical Moderator
August 31, 2020

Maybe you already have found it, but in L0 firmware package, you can find this example:

STM32Cube_FW_L0_V1.11.3\Projects\NUCLEO-L031K6\Examples\FLASH\FLASH_EraseProgram