I am having a rare and seemingly random processor hang in my CC2640 Project Zero based project.
The only hang point that I can see in my code could be in the below 'while(2);' loop:
void execHandlerHook(Hwi_ExcContext *ctx)
{
excPC = ctx->pc; // Program counter where exception occurred
excCaller = ctx->lr; // Link Register when exception occurred
while(2);
}
I have not been able to get the program to hang when connected to a Code Composer Studio Debug session in order to debug this hang.
Is there a way to force a CC2640 'reboot' from inside this while(2) loop or function?
If I could force a reboot, then at least my battery would not die when it gets stuck and the reboot should make the device begin working again.
Are there other options for me to consider to get out of this 'hang'?
Thanks,
Dale