After coming out of stop, I am unlocking watchdog and reconfiguring it in the very next line. However, while unlocking MCU gets a hard fault. How do I prevent hard fault from occurring?
已解决! 转到解答。
Hello @pranav_prabhu
Please do not set breakpoints when configuring the Watchdog. Run the program at full speed for testing.
BR
Alice
Hello @Alice_Yang
Currently when I try to put mcu in stop mode, it gets a hard reset.
Hello @pranav_prabhu
Thanks for your reply. I understand what you mean. Could you please first test by disabling the watchdog code after waking up from stop mode? Can it work properly then? We're doing this to narrow down the issue and confirm whether it's a watchdog configuration problem.
BR
Alice
Hello @Alice_Yang
I am in debug and put a breakpoint at the point where unlock is taking place. Is it because the clock cycles for unlock got elapsed.
Hello @pranav_prabhu
Please do not set breakpoints when configuring the Watchdog. Run the program at full speed for testing.
BR
Alice