cancel
Showing results for 
Search instead for 
Did you mean: 

I can't get my first STM32CubeMX project to build in STM32CubeIDE. I seem to get different errors every time I try to build it, but the most recent is: stm32f1xx_hal_timebase_tim.c:80: undefined reference to `HAL_TIM_Base_Init'

SCook.1
Associate III
1 ACCEPTED SOLUTION

Accepted Solutions
SCook.1
Associate III

Hi Amel! I've got this working now. I'm not sure what the issue was, but I solved it by deleting the CubeIDE project files and recreating the project from CubeMX. It might have been cause by initially choosing the wrong Toolchain/IDE in Project Manager? Sorry for wasting your time.

View solution in original post

3 REPLIES 3
Amel NASRI
ST Employee

Hi @SCook.1​ ,

Could you please share the .ioc file for your project to check the issue?

Are you using latest STM32CubeIDE version?

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

SCook.1
Associate III

Hi Amel! I've got this working now. I'm not sure what the issue was, but I solved it by deleting the CubeIDE project files and recreating the project from CubeMX. It might have been cause by initially choosing the wrong Toolchain/IDE in Project Manager? Sorry for wasting your time.

Glad to know the problem is already solved!

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.