dmitrystu / libusb_stm32

Lightweight USB device Stack for STM32 microcontrollers
Apache License 2.0
721 stars 165 forks source link

STM32L476RG assert failed: endpoint busy #94

Closed tipeter closed 3 years ago

tipeter commented 3 years ago

Hello! I have a simple project that I developed for a stm32f439zi microcontroller (NUCLEO-F439ZI card): it receives data on RS232 port and sends it to a PLC via RS232 and to a PC via USB-HID protocol. The project uses FreeRTOS with TinyUSB stack, RS232 communication is done with DMA. It works perfectly. I wanted to port this to stm32l476rg (NUCLEO-L476RG) microcontroller but I got stuck on USB-HID. The application is self-powered, I use VBUS-sensing. When I connect the device to the PC, the enumeration happens; but the TinyUSB stack immediately stops with an "Endpoint Busy" error. I have removed all "unnecessary" parts from the project, I only start the USB stack, but still this is the result. What could be the problem? What is the status of the STM32L4 port? Thanks in advance for your help! Képernyőkép – 2021-07-29 16-41-57

tipeter commented 3 years ago

Sorry, I accidentally sent it to the wrong place! :) It was a problem with TinyUSB, I'm closing the topic.