I’m using @rickkas7’s electronsample library/app to create a new app. In the process of doing this, I’ve been doing some debugging using a Particle debugger. When compiling that example for debugging, I always immediately get a hard fault.
If I comment out the following line, I do not get a Hard Fault:
If I remove his AppWatchdogWrapper and use the system ApplicationWatchdog, I get the same error with these two lines too:
ApplicationWatchdog wd(60000, System.reset);
ApplicationWatchdog wd(60000, System.reset, 1800);
I’ve tried to break inside that function to see where the error is stemming from, but there really doesn’t seem to be much going on. Any insights as to why ApplicationWatchdog can’t be debugged? For now I am using the following to get around the issue:
#ifndef USE_SWD_JTAG AppWatchdogWrapper watchdog(60000); #endif
I’m building this on firmware v1.0.1 for Electron