cancel
Showing results for 
Search instead for 
Did you mean: 

Message error after generation of default project for STM32F429I for FreeRTOS

NSemrHomeInit
Senior

Dear ST Hello,

I am using Cubmx to create an RTOS for stm32f429I discovery board.

I generated the default project for this board with FreeRTOS.

I have an error compilation,

Middlewares/Third_Party/FreeRTOS/Source/tasks.o: In function `prvAddNewTaskToReadyList':

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetObjectHandle'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceSetTaskNumberLow16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceSetTaskNumberHigh16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetTaskNumberLow16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceSetObjectName'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetTaskNumberLow16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceSetPriorityProperty'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetCurrentTaskHandle'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetTaskNumberHigh16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetTaskNumberHigh16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceGetTaskNumberLow16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvTraceStoreKernelCall'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1127: undefined reference to `prvAddTaskToStackMonitor'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1129: undefined reference to `prvTraceGetTaskNumberHigh16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1129: undefined reference to `prvTraceGetTaskNumberLow16'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1129: undefined reference to `prvTraceStoreTaskReady'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1152: undefined reference to `CurrentFilterGroup'

C:/Users/STarikUser/STM32CubeIDE/workspace_1.3.0/TS_RtosForTrace/Debug/../Middlewares/Third_Party/FreeRTOS/Source/tasks.c:1152: undefined reference to `CurrentFilterMask'

Thank you in advance,

S.Tarik,

5 REPLIES 5
Khouloud ZEMMELI
ST Employee

Hi @NSemrHomeInit​ ,

Which version of CubeMX are you using ?

Can you please check with the latest version of CubeMX and CubeIDE?

Thanks, Khouloud

Hello Khouloud,

I am using the CubeMx 5.6.1 and CubeIDE 1.5.0. Could you confirm please that I am using the latest version?

My RTOS is running on this version of CubeIDE but have an issue.

  1. I am using TIM1 for RTOS ==> OK (task 1)
  2. I am using TIM3 to blink an Led and to handle an interrupt using FreeRTOS ==> NOK (task2)

I could understand why the TIM3 interrupt is not triggered? Could you please help to solve this?

The tim3 global interrupt is enabled and the preemption priority is 5. My RTOS configuration for the RTOS header file are:

Library_lovest_interrrupt_priority = 15

Library_max_syscall_interrupt_priority = 5

I am adding this call function HAL_NVIC_SetPriorityGrouping (NVIC_PRIORITYGROUP_4); but nothing changed, still have the same problem.

Thanks in advance,

S.Tarik

Hi @NSemrHomeInit​ 

The Latest CubeMX version is 6.1.0, please check if you still find compilation error with the default project.

Thanks, Khouloud

OK, the icone shows me 5.6.1, but the version I have is the same you menshed.

The default project build is okay.

How about :

My RTOS is running on this version of CubeIDE but have an issue.

  1. I am using TIM1 for RTOS ==> OK (task 1)
  2. I am using TIM3 to blink an Led and to handle an interrupt using FreeRTOS ==> NOK (task2)

I could understand why the TIM3 interrupt is not triggered? Could you please help to solve this?

The tim3 global interrupt is enabled and the preemption priority is 5. My RTOS configuration for the RTOS header file are:

Library_lovest_interrrupt_priority = 15

Library_max_syscall_interrupt_priority = 5

I am adding this call function HAL_NVIC_SetPriorityGrouping (NVIC_PRIORITYGROUP_4); but nothing changed, still have the same problem.

One more information,

The TIM3.CNT register is always 0.