Skip to main content
Visitor II
February 15, 2021
Question

STlink resets board seconds before programming

  • February 15, 2021
  • 3 replies
  • 546 views

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

    Graduate II
    February 16, 2021

    Did you perhaps set the hardware watchdog?

    DJCAuthor
    Visitor II
    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.

    Graduate II
    February 17, 2021

    Recheck your option bytes!