cancel
Showing results for 
Search instead for 
Did you mean: 

writing data in flash using DMA

MM_2024
Associate

Hi,

I want to write data in flash using DMA. I TRIED USING 

HAL_DMA_Start() FUNCTION. DATA NOT WRITE IN FLASH. HOW TO WRITE DATA IN FLASH USING DMA IN SMT32G0B1RCT6.

 

1 REPLY 1
Hl_st
ST Employee

Hello,

FLASH is by default write protected so before the program will try to write to flash memory it is needed to unlock flash memory. Here is an example for STM32G0B1 which it describes:

STM32CubeG0/Projects/NUCLEO-G0B1RE/Examples/FLASH/FLASH_EraseProgram/Src/main.c at c6c0046d9278a7107261c6bf38327345df4c3efd · STMicroelectronics/STM32CubeG0 · GitHub  

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.