STM32 VScode undefined reference HAL_FLASH_Unlock
Hello everyone,
I am currently taking my first steps with the STM32VScode extension. Previously I worked exclusively with the STM32cubeIDE.
I created a Cmake project via STM32cubeMX, which I then imported via the STM32 VScode extension. Everything worked fine. The build process afterwards was successful and I was able to run the program on my Nucleo-C31C6 board.
Now I want to access the flash memory. But as soon as I insert the function HAL_FLASH_Unlock() into my code, the following error occurs during the build process: main.c:109: undefined reference to `HAL_FLASH_Unlock'.
How do I have to include the HAL drivers correctly so that I can use the function?
maxl95
