Skip to main content
MFerr.4
Associate
July 28, 2025
Solved

Writing to Flash in a STM32G030 HAL functions not found

  • July 28, 2025
  • 1 reply
  • 201 views

I have some code on the STM32G030 processor using only LL drivers.
I need to write on some area in the flash of the processor.
I undestood that there is no LL driver for Flash, but the proble is that If I try to use some HAL functions, like HAL_FLASH_Unlock I get that the linker does not find it.
So the question is how can I add HAL Flash support (.h and .c) in a project that have only LL drivers?

Thank you.
Regards.

Mau.

 

Best answer by TDK

Generate a project in CubeMX with HAL flash support to see how it's set up.

1 reply

TDK
TDKBest answer
Super User
July 28, 2025

Generate a project in CubeMX with HAL flash support to see how it's set up.

"If you feel a post has answered your question, please click ""Accept as Solution""."