Skip to main content
HPate.10
Associate II
August 8, 2022
Question

FreeRTOS Debug windows not displaying proper data

  • August 8, 2022
  • 3 replies
  • 8351 views

I have followed the FreeRTOS API document below I have mentioned the details about the documents.

FreeRTOS on STM32 CMSIS_OS API

T.O.M.A.S – Technically-Oriented Microcontroller Application Services

Version: v1.7

Link for document: https://raw.githubusercontent.com/eziya/STM32F4_HAL_FREERTOS_LAB/master/FreeRTOS_v1.7%20-%20CMSIS%20OS%20API.pdf

Currently, In my application two tasks running simultaneously.

For specific task CPU usage I have followed the page No.251 steps in my STM32Cube IDE for finding the particular task CPU usage.

But, FreeRTOS Task List windows not updating the "Run Time" column value and it's showing the "N/A"

Could you tell me what is issue with IDE or if anything the FreeRTOS configuration side missing? or any version issue?

For more clarification, I have attached the screenshots from the document as well as from STM32Cube IDE.

My Hardware and Software details:

Hardware :

- STM32H745 Discovery board.

Software :

- STM32Cube IDE

- Version : 1.8.0

- Application side currently I am running two tasks.

Thanks In Advance0693W00000QNAPuQAP.png Image: STM32Cube IDE

0693W00000QNAMgQAP.png

This topic has been closed for replies.

3 replies

KnarfB
Super User
August 8, 2022

Did you follow the FreeRTOS chapter in UM2609 "STM32CubeIDE user guide"?

hth

KnarfB

Javier1
Principal
August 12, 2022

I have the same problem with an stm32f105RBt6 and i believe i followed the user guide

cubeMX 6.6.1

STM32Cube FW_F1 V1.8.4

cubeIDE 1.8.0

FReeRTOS v2 10.0.1

CMSIS-RTOS 2.00

 0693W00000QNZQYQA5.png 

@HPate.10​ did you fix it?

hit me up in https://www.linkedin.com/in/javiermuñoz/
Semer CHERNI
ST Employee
August 16, 2022

Hello @HPate.10​ 

To be able to populate the FreeRTOS™-related views with detailed information about the RTOS status, some files in the FreeRTOS™ kernel must be configured.

Check the 6.2.1 paragraph from STM32CubeIDE user guide - User manual doc to find the description of what should be added.

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Javier1
Principal
August 16, 2022

@Semer CHERNI​ thanks for your reply, as i read in the user guide:

  • First, USE_TRACE_FACILITY should be defined to 1.

0693W00000QNoGsQAL.pngI already configured this parameter in cubeMX0693W00000QNoHMQA1.pngI double checked and indeed is correctley defined in my file.

0693W00000QNoHqQAL.png 

 So my issue wasnt that one

hit me up in https://www.linkedin.com/in/javiermuñoz/
Javier1
Principal
August 16, 2022

hit me up in https://www.linkedin.com/in/javiermuñoz/
Semer CHERNI
ST Employee
August 19, 2022

Hello

The user guide instructions contains PSEUDO Code. The reason to use the Pseudo code is that there are many use case depending on the used libraries , hardware configuration, available system resources, etc...

Here are an example implementation based on the HAL library.

FreeRTOS debugging on STM32 – CPU usage – MolesBlog (the78mole.de)

Kind regards,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.