cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Cube Programmer

Alberto4
Associate II

Hi,

I want to load a program so that when I unplug from computer and plug it again it is still running. To load the binary, I am using STM32 Cube Programmer. The program is correctly running, but when I click on the "Disconnect" button it stops running. It only starts running again when I click on the "Connect" button.

Alberto4_0-1712825901865.png

Which configuration I am missing?

Thanks,
Alberto

1 ACCEPTED SOLUTION

Accepted Solutions

Then it's running your code. It's just not doing what you want/expect.

Not sure what connect the board to the computer and "still" running means exactly.  The program will start or restart, it doesn't continue to run.

You're going to need to present the problem more clearly

 

Perhaps have Error_Handler() and HardFault_Handler() set different LEDs so you can observe if it went there and died.

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

View solution in original post

8 REPLIES 8

Shouldn't that be the default behaviour for code situated at 0x08000000?

Unless you floated BOOT0 in your design instead of pulling it low.

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

I am using the development board STM32F446RE and the BOOT0 pin is low.

I have also checked the "Run after programming" checkbox but I still get the same behaviour.

Andrew Neil
Evangelist III

With the programmer disconnected, does the code run after a pressing the RESET button, or power-cycling the board?

No, it does not run. I am powering the board through USB cable which is conneced to the computer.


@Alberto4 wrote:

I am using the development board STM32F446RE .


That's the name of the chip - not the board.

So what board is that chip mounted on?

eg, is it the NUCLEO-F446RE?

 
 

AndrewNeil_3-1712826969611.png

https://www.st.com/en/evaluation-tools/nucleo-f446re.html 

Sorry. Yes, I am using the NUCLEO-F466RE board.

Then it's running your code. It's just not doing what you want/expect.

Not sure what connect the board to the computer and "still" running means exactly.  The program will start or restart, it doesn't continue to run.

You're going to need to present the problem more clearly

 

Perhaps have Error_Handler() and HardFault_Handler() set different LEDs so you can observe if it went there and died.

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

So what happens if you run it in the debugger?

Is the code getting stuck somewhere;  eg, Error_Handler() or HardFault_Handler() - as @Tesla DeLorean suggested