395 views
in Platform Packages by
Hi, I am trying to integrate a project which I built using CubeMx and HAL to an Embedded Wizard project which I converted to C. I am now at the point where everything compiles correctly, but when "Linking EmWiApplication" I get the message :

./Obj/main.o: In function `main':
main.c:(.text.startup+0x4e8): undefined reference to `HAL_TIM_MspPostInit'
main.c:(.text.startup+0x530): undefined reference to `HAL_TIM_MspPostInit'
main.c:(.text.startup+0x5e4): undefined reference to `HAL_TIM_MspPostInit'
main.c:(.text.startup+0x616): undefined reference to `HAL_SPI_Init'
collect2.exe: error: ld returned 1 exit status
make: *** [EmWiApplication] Error 1

When in the beginning the main.c, hal_spi.c and hal_tim.c files have already compiled correctly.  Any thoughts?  I am using an stm32f469 discovery board on the standart GCC compiler as presented in the getting started section of Embedded Wizard tutorials.

The Cube Mx project and the Embedded Wizard project work very well separately but I am really having trouble combining them.

Anything would help. Thanks!

1 Answer

0 votes
by
Hi Nicolas,

probably it is more easy when you start with the provided template project within the Build Environment and try to integrate the additional hardware components where you have generated the intialization code by CubeMX. This means, based on a running UI application you can start integrating the SPI, then the next hardware component...

The other way - integrating the entire Embedded Wizard code into a CubeMX generated project - is more challenging...

By the way: In the near future, the combination of Embedded Wizard GUI and CubeMX Initalization code will be more easy - but at the momement there is some manual integration work necessary.

Best regards,

Manfred.

Embedded Wizard Website | Privacy Policy | Imprint

...