cancel
Showing results for 
Search instead for 
Did you mean: 

Program does not execute after resetting power

Ameya M
Associate III

Hello,

We have developed a custom board having STM32F746NGHx MCU based of the design of the STM32F746G-DISCO board.

We are using ST-Link Utility and ST LinkV3-SET Debugger in JTAG mode to flash.

The board gets flashed and the program is executed after flashing is complete and the display (TFT _ LCD) shows desired output.

But, if the board is reset, the program does not execute and the display shows garbage.

But it executes again only if the STLinkV3-SET Debugger is disconnected and reconnected to the PC.

Please advice on the issue.

Thanks,

Ameya

2 REPLIES 2

Make sure BOOT0 is pulled LOW so your code runs.

Instrument your code to use a USART so you can understand what's happening internally in the absence of a debugger connection.

Have ErrorHandler() and HardFault_Handler() output actionable data so you can determine what happened if they end up in those routines.

Check timing loops and clocking. Check that external clocks start properly.

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

I had a recent similar condition. Debugger worked but would not boot without debugger. Check the hardware timing of your NRST reset. If the reset time is inadequate you will have a dead brick on power reset but with debugger it gives an adequate reset pulse.