eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
154 stars 89 forks source link

STM32 F105 cannot use USBX CDC ACM normally #28

Closed arilink-tech closed 3 years ago

arilink-tech commented 3 years ago

I have successfully ported ThreadX and USBX to STM32F105, and USBX HID can work normally. When I try to use USBX CDC ACM, the problem occurs. There is VCOM virtualized by STM32 in the device manager of windows, but when I try to use this serial port STM32 will freeze and stop running during communication. Why is there such a problem? I do the same operation on STM32 H7 and there is no problem

xiaocq2001 commented 3 years ago

Are you running the application with debugger? To see where the program goes.

arilink-tech commented 3 years ago

I tried to add breakpoints to observe in Debug mode, but unfortunately, as soon as VCOM sends data, the system will be stuck and MDK has not found the stuck position.、

arilink-tech commented 3 years ago

I tried to upload the code here, but it failed to upload. Can you leave your email? I will communicate with you via email

arilink-tech commented 3 years ago

The current problem has been solved. Now I can use CDC for communication normally, but a new problem appears. When I send a cumulative amount of data to VCOM greater than about 250 bytes, VCOM will fail and can no longer send data. What is the problem? ? I use H7 for the same test and there will be no such problem