This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432E401Y: Can't get CPU PC / LR register value at exception

Part Number: MSP432E401Y

Tool/software: Code Composer Studio

Can't get CPU PC / LR register value at exception

Configuration in the syscfg file:

 m3Hwi.enableException = false;
 m3Hwi.excHandlerFunc = "&execHandlerHook";

Use the following function:

volatile uintptr_t *excPC = 0;
volatile uintptr_t *excCaller = 0;
void execHandlerHook(Hwi_ExcContext *ctx)
{
    excPC = (uintptr_t*)ctx->pc;     // Program counter where exception occurred
    excCaller = (uintptr_t*)ctx->lr; // Link Register when exception occurred

    while(2);
}

The obtained excPC and excCaller cannot confirm the location where the exception occurred.

Observed values:
Name : *(excPC)
Default:2817851392
Hex:0xA7F50000
Decimal:2817851392
Octal:024775200000
Binary:10100111111101010000000000000000b

Name : excCaller
Default:0x00000000
Hex:0x00000000
Decimal:0
Octal:00
Binary:00000000000000000000000000000000b


Is there any way to locate where the exception occurred?