This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debugger does now longer handle breakpoint after watchdog reset.

Hi 

I play with watchdog.

After a watchdog reset the debugger does no longer stop on a breakpoint or generate a hardfault on a __BKPT()

How can I config the Chip to handle breakpoints correct after watchdog reset?

Parents Reply Children
  • Hi,

     

    Canastra said:

    Hi Håkon

    SES is still in debugging mode.

    The target handle a reset from the debugger correct.

    How can I re-attach the debugger in SES?

    Can this be done automatically?

     Yes, the debug session is still open, but it goes into the running state after a wdt reset has occurred. If you halt the cpu, you can see that it has faulted (set CONFIG_RESET_ON_FATAL_ERROR=n to enable blocking assertions/faults), but you're not able to connect in such a time that the bpkt instruction is executed as you intend.

     

    Kind regards,

    Håkon

  • Hi Håkon

    So I see there is now way to handle breakpoints after a reset.

    Today I test the reset button and it is the same behavior.

    No halt on breakpoint and hardfault on __BKPT()

    I print out DCB->DHCSR at startup.

    with working debugger the value is #######1.

    After reset (pin or dog) the value is #######0.

    And only a debugger can modify this bit.

    Thanks for support

Related