Skip to main content
MFerr.4
Associate
Jul 28, 2025 11:24 AM UTC
Solved

Writing to Flash in a STM32G030 HAL functions not found

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.

 

This topic has been closed for replies.
TDK
TDKBest answer
Jul 28, 2025 12:53 PM UTC

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""."

1 reply

TDK
TDKBest answer
Jul 28, 2025 12:53 PM UTC

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""."