cherry-embedded / CherryUSB

CherryUSB is a tiny, beautiful and portable USB host and device stack for embedded system with USB IP
https://cherryusb.readthedocs.io/
Apache License 2.0
1.21k stars 256 forks source link

STM32f401. Failed to get device descriptor,errorcode:-116 #83

Closed ND-00 closed 1 year ago

ND-00 commented 1 year ago

I'm trying to make usb host on the stm32f401ccu6. This error occurs when connecting a usb device. I'm using CubeIDE. My code is copied from the stm32f429igt6 example. I followed the steps according to the guide. That's all I did.

sakumisu, thanks for the great work! I hope the issue can be resolved

sakumisu commented 1 year ago

You should check whether it supports dma mode.

ND-00 commented 1 year ago

MCU supports DMA mode. Or do you mean this? image My MCU does not have this option. Is it critical? P.S. Sorry, maybe I'm asking very stupid questions, but I can't solve this problem for a long time. Error log image

sakumisu commented 1 year ago

Right, only support dma not fifo mode, and pin must be pb14, pb15

ND-00 commented 1 year ago

The USB connector is configured and connected correctly. My pins are pa11, pa12. Do you have any ideas about this issue? I can't find the location of the problem

sakumisu commented 1 year ago

sorry, must be another port with pin PB14 PB15,PA11 PA12 do not support in driver because it does not support dma

ND-00 commented 1 year ago

This MCU has no other outputs. I close the issue. Thanks for the help!

sakumisu commented 1 year ago

You can use stm32f429 and have a try.