Skip to main content
Syang.2
Associate
November 17, 2020
Question

cubemx project

  • November 17, 2020
  • 1 reply
  • 1043 views

I use cubeMX version6.0.0,generate a simple serial port project, I need to click three times 'run' can run to the main function(break point) use jlink in debug mode ,

The serial port tool has output character,. But direct download and re power-on does not work.

Self-made board: stm32f446ret, other projects(mbed os) can be downloaded and run directly. In debug mode, only need to press run once, there is no problem with the board

This topic has been closed for replies.

1 reply

TDK
Super User
November 17, 2020

> Self-made board: stm32f446ret

> there is no problem with the board

Maybe you're right, but the simplest explanation is BOOT0 isn't pulled down, or some other hardware issue. If you give the STM32F4 power, it will run the code in flash memory, barring special cases like NRST held low or SWD halting the core.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Syang.2
Syang.2Author
Associate
November 17, 2020

Confirmed BOOT0 is pulled down.how to confirmed special cases like NRST held low or SWD halting the core on my project?

TDK
Super User
November 17, 2020

Use a multimeter to measure NRST and disconnect the debugger before power cycling.

"If you feel a post has answered your question, please click ""Accept as Solution""."