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.

Deciphering CC2640 CPU Exceptions

Other Parts Discussed in Thread: CC2640

I am trying to follow swru393a regarding Deciphering CPU Exceptions on a CC2640 with IAR 7.50.1. I implemented a custom exception handler as per suggestions and am setting a breakpoint in it. However, the program counter (failPC) is always 0. I have turned off any optimizations for the project. 

Any suggestions on what i am missing?

  • Hi,

    Not sure exactly what's going on, but one thing to look at would be the LR which would point to the function that was called previous to the function with the exception. Also I would check for buffer overflow using the IDE debug mode View-> Memory

    In the diagram above, addresses starting with 0x2000xxxx points to RAM in the CC2640.

    Best wishes