cancel
Showing results for 
Search instead for 
Did you mean: 

STlink resets board seconds before programming

DJC
Senior

I have a rather large build and I notice that my board boots twice when I program it. It seems like ST-link is performing a reset, then does "something" before actually doing the programming of my board. Is there any way to ensure that reset only happens once?

3 REPLIES 3
Uwe Bonnes
Principal III

Did you perhaps set the hardware watchdog?

DJC
Senior

I don't think so... for now my dirty solution is to just put an ifdef DEBUG osDelay(1000) at the start of my code. This is only a mild annoyance during development anyway.

Uwe Bonnes
Principal III

Recheck your option bytes!