cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with undefined references in STM32CUBEIDE

EKama.1
Associate II

Hello there,

After an update off STM32CubeIde from 1.17.0 to 1.19.0, the compilation of my code generates a lot of undefined references in functions like HAL_Init(). Do you know how to solve this problem? All of the header files are linked in same C file.

1 REPLY 1

Starts be determining what's missing and why.

Is this an error coming from the LINKER or the COMPILER?

All the header files should be pulled by a single include, what gets built depends on defines in stm32xyz_hal_conf.h

Include files typically don't provide the body code to the functions they describe, the linker needs to get that from libraries, or source the compiler compiles. Make sure the source files are described by the project.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..