Skip to main content
migmel
Associate III
March 2, 2022
Solved

How to R/W to internal flash memory without HAL library in a STM32L071CB MCU

  • March 2, 2022
  • 2 replies
  • 1158 views

Hello, does anybody know how to read/write to internal flash memory in a STM32L071CB MCU using low level or any other method without having to use the HAL library ?

This topic has been closed for replies.
Best answer by waclawek.jan

To read, you just... well... read it. In C, use a pointer with suitable type and value.

To write, read Writing/erasing the NVM subchapter of FLASH chapter in RM.

Note, that the erased state of 'L0 FLASH is 0.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
March 2, 2022

To read, you just... well... read it. In C, use a pointer with suitable type and value.

To write, read Writing/erasing the NVM subchapter of FLASH chapter in RM.

Note, that the erased state of 'L0 FLASH is 0.

JW

migmel
migmelAuthor
Associate III
March 2, 2022

Thank you, I was searching in the wrong place.

Regards,

MM