I'm using a Nucleo F401RE board to help me debug a problem with the USBSerial library and this micro.
I've attached a USB connector to PA12 (D+), PA11 (D-), GND, and PA9 (+5V). The board is powered from the embedded STLINK USB and the clock is configured by default (board revision C-03) to use the MCO from ST-LINK.
The library works well for simple reads and writes. However, when I stress it a little it freezes. Here is a simple program that hangs the board when more than 64 bytes are transferred from the PC to the board in a single shot (tried with the Arduino console).
I've debugged it a little bit, and it is stucked here:
bool USBDevice::write(uint8_t endpoint, uint8_t * buffer, uint32_t size, uint32_t maxSize)
{
[...]
/* Wait for completion */
do {
result = endpointWriteResult(endpoint);
} while ((result == EP_PENDING) && configured());
For some reason epComplete flag is not changed by the USB ISR inside USBHAL_STM32F4.cpp
Issue type: Defect
Severity: Default
Created 8 years, 5 months ago.Updated 8 years, 5 months ago.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.