Skip to main content
Visitor II
August 27, 2025
Question

CubeMX USB RTOS issue

  • August 27, 2025
  • 2 replies
  • 311 views

dxgvbsdfgsd_0-1756272017129.pngdxgvbsdfgsd_2-1756272037356.png

 

 

dxgvbsdfgsd_3-1756272048683.png

dxgvbsdfgsd_4-1756272140038.png

 

在32位中,字的单位应该要*4吧?为什么这里直接是按字节赋值???坑死我了

Translation:

"In 32-bit, the word unit should be * 4, right? Why is it assigned directly by byte here? ? ?"

 

Edited by ST moderator to be inline with the community rules.

In next time please write in English as it's an international community. Thank you for your understanding.

2 replies

Technical Moderator
August 27, 2025

Hello 

What is the MCU part number you are using?

 

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.
Technical Moderator
October 31, 2025

Hello @dxgvbsdfgsd 

The user must be aware that the macro is defined in words. In this case you should use it as a value in words and convert it to bytes when required. For example, in definition of defaultTask in main.c the stack size is multiplied by 4to convert it from words to bytes.

BR, Souhaib

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.