2020-01-10 06:30 AM
Hi!
When I turn on the USB power on the Nucleo Board F401RE. I assume that the UART will work perfectly and be able to recieve data from the PC...but no.
I need to press the black reset button directly after I have turn on the power to the Nucleo Board. Else, the UART won't be able re recieve data from the PC.
Notice that I'm using DMA with UART. Yes I know that MX_DMA_Init(); need to be before MX_USART2_UART_Init(); in the main.c file.
Why could not be so that when I turn on the USB power, then the Nucleo Board should be ready to receive data from the PC? Without pressing the black reset button.
I'm using STM version 1.24.2 at a basic project.
2020-01-10 02:33 PM
Apparently your code depends on some fine timings, which are not guaranteed. That is also a bug. :)
2020-01-11 05:55 AM
So, will the next version fix this?
2020-02-20 01:25 PM
Is it fixed now? :)
I still see that STM version is 1.24.2 for STM32 F401RE.
2020-02-29 02:59 AM
We cannot know when you will fix your code!
2020-03-01 10:37 AM
It's my code that have errors. This is generated by Cube MX.
2020-03-01 12:23 PM
Yes, CubeMX generates boiler plate code which is usually broken or suboptimal.
Perhaps you should debug the code so you can report an actual solution that can be integrated into new builds.
The VCP on the board may take time to come up on Windows as drivers are selected and loaded.