Skip to main content
Visitor II
August 30, 2024
Question

STM32H723 USB Example

  • August 30, 2024
  • 4 replies
  • 2050 views

I was trying to use the usb cdc acm example from STM32CubeMx for a Nucleo-H723ZG board. When i run the example, the device doesn't get detected at by my computer. 

    This topic has been closed for replies.

    4 replies

    Technical Moderator
    August 30, 2024

    Hello @jasd33p ,

    Make sure to update and use latest release of STM32CubeMX. Maybe you have the same issue described in these posts and which is fixed in the CubeMX 6.11.0 version.

    This article may help you on your application: How to implement a dual CDC ACM USB device using t... - STMicroelectronics Community.

    jasd33pAuthor
    Visitor II
    August 30, 2024

    Hi. 

    I noticed in the main.c that only dma and gpio init are called but nothing for the usb. 

    Graduate II
    September 3, 2024

    The USB is initialized when MX_ThreadX_Init is called.

    Hopefully you're using the USB connector at the bottom edge of the board. Make sure you have a good USB cable with data signals and not a charging cable only cable.

    jasd33pAuthor
    Visitor II
    September 3, 2024

    I only see tx_kernel_enter() in Mx_ThreadX_Init. Do i have to add the USB code myself for the example? 

    Super User
    September 1, 2024

    Nucleo-H723ZG examples do not include CDC.

    https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/USB_Device

    Probably you're using some other source, and we don't know which.

     

    jasd33pAuthor
    Visitor II
    September 3, 2024

    jasd33p_0-1725373391879.png

    I was using the stm32cubemx and the cdc example is there

    Graduate II
    September 3, 2024

    No, you can see the USB files/folders that were added. With some referencing, starting with usb_otg.c, you can work backwards starting with MX_USB_OTG_HS_HCD_Init and see what function calls it, then the function before that and so on until MX_ThreadX_Init