cancel
Showing results for 
Search instead for 
Did you mean: 

USB_DEVICE code can't work!

Junde
Senior II

Hi there,

I am using STM32F429BIT6 and want to show the SDcard(connect with MCU by SDIO) as a Udisk on PC.

I can normally read/write the SD card by MCU with FATFS.

But after I added the USB config in CubeMx, the code is something wrong.

My CubeMX config is as follows:

Junde_0-1723691539237.png

Junde_1-1723691568096.pngJunde_2-1723691618953.pngJunde_3-1723691695548.png

Junde_4-1723692170702.png

As we can see, I enabled the USB log, but nothing output.

After debugging, I found the MCU is blocked in the while loop in USBD_GetEpDesc().

I don't know what that means, please help me. Thank you!

0 REPLIES 0