1 year, 4 months ago.
USB Serial code is stops works after certain scanf
I am evaluating nucleo stm32f401RE board. I develop one basic application using USBStack. I used the USBserial class from that.USB stack downloaded from the below link.
Inside a code i am scanning some input from the user. After the some scanf it fail to scan the data. Code stops work and throwing below error.
mbed assertion failed: ret!=HAL_BUSY, file: ../USBDevice/targets/TARGET_STM/USBHAL_STM32.cpp, line 258
This error is from USBHAL_STM32.cpp file 's endpoint-Read function.
Please addressing my below queries for the same, 1) Why USBSerial suddenly stop work? 2)Is this USB stack reliable?
Please let me know if you need more information from my side.
1 year, 3 months ago.
The example you linked to is extremely old and is using Mbed OS 2 instead of the latest Mbed OS 5. USBSerial is also no longer supported. However, Mbed OS 5 does have support for Serial/RawSerial drivers, and there are a few examples for Mbed OS 5 that will work with the stm32f401RE board here:
- Serial examples: https://os.mbed.com/docs/latest/reference/serial.html#serial-examples
- RawSerial examples: https://os.mbed.com/docs/latest/reference/rawserial.html#rawserial-examples
Please let me know if you have any questions!
- Jenny, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!
You need to log in to post a question