|
USB MSC例程中使用的是 EPIN_ADDR = 0x81; EPOUT_ADDR = 0x01; 程序里做了这样的修改: EPIN_ADDR = 0x86; EPOUT_ADDR = 0x02; 在usb_conf.c 中增加: HAL_PCDEx_SetTxFiFo(&hpcd, 6, 0x200); 这样的程序,F407 可以接收到PC 发过来的数据,但是不能将数据发送到PC。 看到文档 UM1734 有如下描述:我觉得我都已经修改了,有哪位同学指导我一下,怎么样才能同时使用endpoint2 和endpoint6 5. How can the used endpoints be changed in the USB device class driver? To change the endpoints or to add a new endpoint: a) Perform the endpoint initialization using USBD_LL_OpenEP(). b) Configure the TX or the Rx FIFO size of the new defined endpoints in the usb_conf.c file using these APIs in the USBD_LL_Init() function – For STM32F2 and STM32F4 series (FS and HS cores): HAL_PCD_SetRxFiFo() HAL_PCD_SetTxFiFo() The total size of the Rx and Tx FIFOs should be lower than the total FIFO size of the used core, that is 320 x 32 bits (1.25 Kbytes) for USB OTG FS core and 1024 x 32 bits (4 Kbytes) for the USB OTG HS core. – For STM32F0, STM32L0, STM32F1 and STM32F3 series (FS core only): HAL_PCD_PMA_Config() |
Your UAT Feedback is needed within today.
STM32_USB_Device_Library
用STM32F4 Cube MX生成的USB Device C代码的BUG
STM32F446 USB和串口1 冲突
STM32f407ZG使用STM32CubeMX创建USB应用失败
请教stm32F105 USB开发资料去哪里下载
STM32F103VE-USB-VCOM发不出数据
STM32cubemx 配置出的 USB HID 电脑无法识别
[STM32L496] 求助USBCDC通信,PC端总是需要插拔USB线问题
STM32F USB DFU下载无法识别USB设备
微信公众号
手机版
这个不叫多端口。只是用不同的端点进行收发而已。
使用0x01/0x81 端口已经调试通了。但是之前的设计是0x02/0x86 端口上通信的,从CY7C68013A 到STM32F103 上都使用的是0x02/0x86 端口。这次F407 需要和之前的做兼容,还请老师指教!@衔胆栖冰
我是菜鸟,这个看不出个啥