Skip to main content
Graduate
November 19, 2024
Question

Code Functionality Stuck in Scheduler - Need Assistance

  • November 19, 2024
  • 1 reply
  • 899 views

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!

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 17, 2025

    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, 

    saikumarAuthor
    Graduate
    January 28, 2025

    Thank you for your response!

    The original issue has been resolved, but I am now facing a limitation with the HS_MPS (High-Speed Maximum Packet Size) value.

    Currently, the HS_MPS is capped at 2044, and I need to increase it beyond this value to achieve higher FPS for my UVC application. Despite everything else working fine, the FPS remains low due to this limitation.

    I have already posted a separate question about this issue,

    https://community.st.com/t5/stm32-mcus-embedded-software/issue-increasing-usbd-video-epin-hs-mps-for-uvc-implementation/td-p/748921 

    but unfortunately, I haven’t received any answers yet. For reference, I’m attaching my code files as a zip to provide more context about my current configuration and implementation.

    I would greatly appreciate your guidance on how to:

    1. Increase the HS_MPS beyond 2044, and
    2. Achieve higher FPS for the video stream.

    Thank you for your time and help!

    Visitor II
    March 10, 2025

    can you explain how you resolved initial issue?