您好刘先生
我是用的USB0口的,USB0口也不是HOST。
文档中这样描述的
Typical connections for a USB peripheral:
- USBx_DP and USBx_DM are connected directly to the USB connector
- USBx_CE can be used if supporting charging. This generally would be connected to the enable of a charging source for the battery.
- USBx_ID can be left unconnected
- USBx_DRVVBUS is not used and can be left unconnected
- USBx_VBUS should be connected directly to the VBUS pin on the USB connector
对比文档,我只有USB0_CE的连接方式与其不同(我将图中于USB0_VBUS的1.2k电阻换成了0欧的依然不行),我板子上没有电池,也不需要充电。所以我的usb0_ce就没接的,这应该符合USB peripheral的条件吧?您看您什么时候有空可以给我指导一下吗?我的QQ是1032419351