初级会员

- 积分
- 131
- 金钱
- 131
- 注册时间
- 2017-10-19
- 在线时间
- 15 小时
|
1金钱
使用开发版上Slave USB接口,这个接口既无上拉电阻,也没有下拉电阻,怎样知道它的速度,是全速还是低速?HID程序使用的STM官方的代码进行移植的,移植后编译正常,工程里有串口log,波特率为115200,功能也正常,程序运行起来可以进入USB终端,但接收不到请求:
不插USB设备:
usr->USB Device Disconnected.
USBD_OTG_ISR_Handler->GINTSTS=0x40000004->bit:sessreqintr
usr->USB Device Connected.
->bit tgintr
->gotgint=4->VBuS<0.8V
插上USB设备:
USBD_OTG_ISR_Handler->GINTSTS=0x40003004->bit:usbreset
usr->USB Device Library v1.1.0 [FS]
->:enumdone
->bit:sessreqintr
usr->USB Device Connected.
->bit tgintr
->gotgint=4->VBuS<0.8V
usr->USB Device Disconnected.
请问怎么解决?
|
|