Skip to main content
EKama.1
Associate
June 3, 2022
Question

Problem with undefined references in STM32CUBEIDE

  • June 3, 2022
  • 1 reply
  • 2584 views

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.

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
June 3, 2022

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 VenmoUp vote any posts that you find helpful, it shows what's working..