AnsweredAssumed Answered

Cube MX 4.24.0 FreeRTOS Problem

Question asked by Roger Heil on Jan 30, 2018
Latest reply on Mar 20, 2018 by Jeanne Joly

Hi,

when I generate a example for the nucleo32 L432kc everything is fine, until I check the option freeRTOS

 

After this the includes are not correct anymore:

>>>>>

Src\freertos.o: In function `StartDefaultTask':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/freertos.c:118: undefined reference to `HAL_GPIO_TogglePin'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/freertos.c:119: undefined reference to `osDelay'
Src\freertos.o: In function `MX_FREERTOS_Init':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/freertos.c:99: undefined reference to `osThreadCreate'
Src\gpio.o: In function `MX_GPIO_Init':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/gpio.c:80: undefined reference to `HAL_GPIO_WritePin'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/gpio.c:87: undefined reference to `HAL_GPIO_Init'
Src\main.o: In function `SystemClock_Config':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:156: undefined reference to `HAL_RCC_OscConfig'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:170: undefined reference to `HAL_RCC_ClockConfig'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:177: undefined reference to `HAL_PWREx_ControlVoltageScaling'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:184: undefined reference to `HAL_RCC_GetHCLKFreq'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:184: undefined reference to `HAL_SYSTICK_Config'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:188: undefined reference to `HAL_SYSTICK_CLKSourceConfig'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:191: undefined reference to `HAL_NVIC_SetPriority'
Src\main.o: In function `main':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:92: undefined reference to `HAL_Init'
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/main.c:115: undefined reference to `osKernelStart'
Src\stm32l4xx_it.o: In function `SysTick_Handler':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/stm32l4xx_it.c:157: undefined reference to `osSystickHandler'
Src\stm32l4xx_it.o: In function `TIM7_IRQHandler':
E:\Workspaces\Atollic9\432kcTest\Debug/..\Src/stm32l4xx_it.c:178: undefined reference to `HAL_TIM_IRQHandler'
collect2.exe: error: ld returned 1 exit status

<<<<<<<<<<

 

when I copy the same sourcecode into a emtpy project, insert the symbols and directories, setup the mcu -->

 

Generate build reports...
Print size information
text data bss dec hex filename
52544 20 4044 56608 dd20 L432KC.elf
Print size information done
Generate listing file
Output sent to: L432KC.list
Generate listing file done
Generate build reports done

 

I think the includes are not linked correct.

 

regards

Roger

Outcomes