Skip to main content
Associate 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. 

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
jasd33pAuthor
Associate II
August 30, 2024

Hi. 

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

Karl Yamashita
Lead III
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.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
jasd33pAuthor
Associate 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? 

Pavel A.
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
Associate II
September 3, 2024

jasd33p_0-1725373391879.png

I was using the stm32cubemx and the cdc example is there

Karl Yamashita
Lead III
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

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source