cancel
Showing results for 
Search instead for 
Did you mean: 

Code Functionality Stuck in Scheduler - Need Assistance

saikumar
Associate III

Hello ST Community,

I am currently working on a project using the STM32U5G9ZJT6Q MCU. My application involves sending data over USB using CDC-ACM mode.

While the code appears to be working correctly, I am encountering an issue where the execution gets stuck in the scheduler.
However, during runtime, the code halts, and the debugger points to _tx_thread_schedule();

I suspect there might be an issue with middleware integration or clock settings, but I am unable to pinpoint the root cause.

The code I am using is sourced from this link:

https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/STM32U5G9J-DK2/Applications/USBX/Ux_Device_CDC_ACM 

Has anyone encountered a similar issue or have any insights into what could be causing this? Any guidance or suggestions for debugging would be greatly appreciated.

Thank you in advance for your support!

1 REPLY 1
FBL
ST Employee

Hi @saikumar 

Did you try to build and flash the example as it is and not working? You need to debug further and provide details to understand the root cause. Which compiler are you using? if using CubeIDE, try to enable RTOS Proxy under Debug configuration, 

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.