Skip to main content
SCook.1
Associate III
August 3, 2020
Solved

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'

  • August 3, 2020
  • 2 replies
  • 819 views

..

This topic has been closed for replies.
Best answer by SCook.1

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.

2 replies

Amel NASRI
ST Technical Moderator
August 14, 2020

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 "Best Answer" on the reply which solved your issue or answered your question.
SCook.1
SCook.1AuthorBest answer
Associate III
August 14, 2020

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.

Amel NASRI
ST Technical Moderator
August 14, 2020

Glad to know the problem is already solved!

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.