I am using Particle P1, when code is running sometimes it got reset in between and System.resetReason() it shows RESET_REASON_PANIC: System panic. so i want to know
- is there any way to know or i can get any indication somehow that in code at which place or line creating problem?
- or can i stop that reset i mean if execution can stuck at same place or line it had problem? i tried with
System.on(reset_pending, on_reset_pending); System.disableReset();
but it was just disable reset on firmware update.
anyone can help me. Thanks.