Skip to main content
Visitor II
September 10, 2024
Solved

USB CDC in STM32H563

  • September 10, 2024
  • 3 replies
  • 1400 views

tried to set up a USB device serial emulation (CDC) for STM32H563. Started a Free RTOS based project project in STM32CubeMX. But there I only can activate USB as "device_only in the "connectivity" segment but do not find any other USB related settings. I did that previously with the stm32F series and there it was in STmCube, no prob.

The generated code also seems not to have the USBD_DESC_Private_Defines or similar things needed. 

Is it somewhere hidden under another name in STM32Cube? Or does STM32Cube does not support it? Or is this  CPU issue? Or do I need to somehow get me drivers from other places and when yes, from where?

 

 

    This topic has been closed for replies.
    Best answer by VKoen.1

    Just to close this topic:

     

    I got it running on a stm32H563 following STM advice

    https://community.st.com/t5/stm32-mcus/how-to-use-stmicroelectronics-classic-usb-device-middleware-with/ta-p/599274

     

    The only weak point was, that I had to switch off the ICACHE, probably because of a weakness in the STM code concerning read out of CPU serial number, but I did not need the speed, and so I was good

    3 replies

    Super User
    September 10, 2024

    You are invited, to use Azure /ThreadX . :)

     

    Here (threadx activated) you can choose ... :

    AScha3_0-1725975678881.png

     

    Graduate II
    August 8, 2025

    Well, I for one will politely decline that invitation.

    Technical Moderator
    September 10, 2024

    Hi @VKoen.1 

    Which USB stack do you want to implement? If you are using ST Library stack, it is not implemented in CubeMX. You can check examples provided here.STMicroelectronics/stm32h5-classic-coremw-apps: Provide a set of applications for STM32H5xx series based on the STM32 Classic Core Middleware libraries. (github.com)

    VKoen.1AuthorAnswer
    Visitor II
    August 8, 2025

    Just to close this topic:

     

    I got it running on a stm32H563 following STM advice

    https://community.st.com/t5/stm32-mcus/how-to-use-stmicroelectronics-classic-usb-device-middleware-with/ta-p/599274

     

    The only weak point was, that I had to switch off the ICACHE, probably because of a weakness in the STM code concerning read out of CPU serial number, but I did not need the speed, and so I was good