cancel
Showing results for 
Search instead for 
Did you mean: 

Why does I need to press the reset button after I have turn on the power? - Nucleo Board

DMårt
Senior II

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.

6 REPLIES 6
Piranha
Chief II

Apparently your code depends on some fine timings, which are not guaranteed. That is also a bug. 🙂

So, will the next version fix this?

DMårt
Senior II

Is it fixed now? 🙂

I still see that STM version is 1.24.2 for STM32 F401RE.

Piranha
Chief II

We cannot know when you will fix your code!

It's my code that have errors. This is generated by Cube MX.

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. ​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..