Skip to main content
DJC
Senior
February 15, 2021
Question

STlink resets board seconds before programming

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?

This topic has been closed for replies.

3 replies

Uwe Bonnes
Chief
February 16, 2021

Did you perhaps set the hardware watchdog?

DJC
DJCAuthor
Senior
February 17, 2021

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
Chief
February 17, 2021

Recheck your option bytes!