Other Parts Discussed in Thread: EK-TM4C1294XL
Hello,
I'm encountering a number of varying hard faults in my code, and am looking for advice on how to use Code Composer Studio to its fullest to help troubleshoot these issues.
I'm using:
CCS v11.2.0
XDS100v3
I also have available a Tiva C Series Launchpad EK-TM4C1294XL Rev D
I have read this: https://www.ti.com/lit/an/spma043/spma043.pdf
But unfortunately I keep getting stuck because the Program Counter (PC) Address in Disassembly just points to the FaultISR(). Also the NVIC Fault Status register shows it is a precise data bus error and the Bus Fault Address is valid, however the address points to 0x00000000, which as indicated by the Memory Map in the datasheet is in On-Chip Flash.
As I understand it, if the Fault ISR is more than a simple while loop, it may require an offset to the PC to find the offending instruction, but my code is just a simple while loop:
static void FaultISR(void) { // // Enter an infinite loop. // while(1) { } }
Adding some of my debugging screenshots in case it helps:
Any help as to how to actually find the offending instruction is greatly appreciated.