2024-08-30 08:19 AM
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.
2024-08-30 08:53 AM - edited 2024-08-30 08:54 AM
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.
2024-08-30 10:14 AM
Hi.
I noticed in the main.c that only dma and gpio init are called but nothing for the usb.
2024-08-31 07:01 PM
Nucleo-H723ZG examples do not include CDC.
Probably you're using some other source, and we don't know which.
2024-09-03 07:23 AM
I was using the stm32cubemx and the cdc example is there
2024-09-03 12:18 PM
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.
2024-09-03 01:34 PM
I only see tx_kernel_enter() in Mx_ThreadX_Init. Do i have to add the USB code myself for the example?
2024-09-03 02:06 PM
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