AnsweredAssumed Answered

STemWin issues during linkag: undefined reference to `OS_TimeMS' ?

Question asked by Jur Div on May 17, 2018
Latest reply on May 17, 2018 by Jur Div
Branched from an earlier discussion

I tried to compile the 'Hello World' example provided in stm32cube F7 package, with no success.


I copied all files from STM32Cube_FW_F7_V1.11.0/Projects/STM32746G-Discovery/Applications/STemWin/STemWin_HelloWorld/Core and STemWin/ folders

and tried to compile, with correct link flags.
I get errors:

 

pio_builds/disco_f746ng/src/stm32f7xx_it.o: In function `SysTick_Handler':
stm32f7xx_it.c:(.text.SysTick_Handler+0x10): undefined reference to `OS_TimeMS'
/.../Middlewares/ST/STemWin/Lib/libSTemWin540_CM7_GCC.a(GUI_Core.o): In function `GUI_Init':GUI_Core.c:(.text.GUI_Init+0xbc): undefined reference to `GUI_X_Init'

 

I added the "lib-" prefix to the library and included following flags to gcc:

 

 

-I/home/jure/Projects/ARMdev_stuff/STM32Cube_FW_F7_V1.11.0/Middlewares/ST/STemWin/inc
-L/home/jure/Projects/ARMdev_stuff/STM32Cube_FW_F7_V1.11.0/Middlewares/ST/STemWin/Lib
-lSTemWin540_CM7_GCC
-lSTemWin540_CM7_GCC_ARGB
-lSTemWin540_CM7_GCC_ot
-lSTemWin540_CM7_GCC_ot_ARGB
-mfloat-abi=hard
-mfpu=fpv5-sp-d16


I am using STM32F7 discovery board, stm32cube framework (HAL) and no RTOS or anything.
I didn't change any code in the Hello World example, which is written exactly for this platform. What should I do?

Outcomes