cancel
Showing results for 
Search instead for 
Did you mean: 

USBx CDC ACM Descriptor Error in STM32F4

Rhyzack
Associate II

Following the example in STMCubeMx Azure USBx CDC ACM. it seems that I'm having trouble when the PC does not recognize the USB device slave giving me this error

0693W00000NqYXAQA3.pngthe there is no error in the app_usbx_device.c initialization, in terms of memory allocation. during debug, checking the _ux_system_slave handle it seems that the slave descriptor is not set.

0693W00000NqYYNQA3.pngI don't think this normal not have the device descriptor populated. I don't think there is a problem with the hardware since I run tinyusb on this device no problem. since I'm migrating to azure RTOS its nice to use the USBX as well.

If anyone can shed me some light on this issue, I would really appreciate it.

CubeMx USBX config

0693W00000NqYYmQAN.png

4 REPLIES 4

Hello @Rhyzack​ 

You can refer to the following example provided under the X-CUBE-AZRTOS-F4 package:

Otherwise, could you please provide the ioc file used for further check?

BeST Regards,

Walid

Yes my reference project is from the X-CUBE-AZRTOS-F4 package STM32469I. by the way you can copy the code and port it to STM32F407 as well right? attach the ioc file.

I added the LED thread on the project which runs completely fine. where the 2 LEDS are pulsing.

Rhyzack
Associate II

anyone else having this issue. attach the .ioc file and check if the configuration is correct. i dont find anything wrong with it. it seems this is bug or something

I have the same issue , i am attaching the file