Part Number:CC2640R2F
Tool/software: TI-RTOS
Hi all,
I've encountered a mysterious issue on a CC2640R2F project. When I add an exception handler, I cannot connect as easily to my master device as before. The master device is a Beelink GT1.
Which is weird is that I have two types of Beelink GT1 and I have the issue with only one of them, the B706 with 32Gb. I do not have the issue with the A912 with 16Gb.
Here's how I add the exception handler in cc2640_r2_csdk.cfg :
m3Hwi.enableException = false;
m3Hwi.excHookFunc = "&execHandlerHook";
and in main :
#include <ti/sysbios/family/arm/m3/Hwi.h>
volatile uintptr_t *excPC = 0;
volatile uintptr_t *excCaller = 0;
void execHandlerHook(Hwi_ExcContext *ctx)
{
excPC = ctx->pc; // Program counter where exception occurred
excCaller = ctx->lr; // Link Register when exception occurred
while(2);
}
Does anyone has an idea what causes the issue and how to had the exception handler without causing the issue?
Thanks in advance,
Sylvain