Is it possible to check previous function calls/ commands in debug window?
I am hitting data abort exception I would like to know which exact function and command causing the issue.
Regards,
Kishor
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.
Is it possible to check previous function calls/ commands in debug window?
I am hitting data abort exception I would like to know which exact function and command causing the issue.
Regards,
Kishor
H Kishor,
If the data abort is a synchronous abort, the CP15 DFAR register shows the target address of the access. R14_abt – 8 points to the instruction that caused that access.
If it is a asynchronous abort, we are not able to trace the exact location that resulted in the abort. We cannot use the DFAR register which is used in Synchronous Faults. In general, “store” instructions to areas with “Normal” or “Device” memory attributes causing an error are asynchronous.
How to track instruction that caused the asynchronous data abort?
Please check the value of the CP15 Data Fault Status Register (DFSR) to see if it is sync or async abort:
DFSR Register The Figure bellow shows the DFSR register bit assignments:
Use the “S” Bit [10] and “Status Bits” [0:3] to understand the nature of the Data Abort. See Table below for status description:
In CCS->View, open "disassembly" window, type 0xEDEC, the window will show the instruction at this address.
The status is b00001, which means alignment fault.
Any unaligned access to Device or Strongly Ordered memory generates an alignment fault. For example, a load of a word (32-bit) from Strongly Ordered or Device memory addresses 0x1, 0x2, 0x3, 0x5, 0x6, or 0x7 generates an alignment fault.
Hi Kishor,
The R0=0x..8 which is 32-bit aligned. I think it should be ok.
Hi Kishor,
I used box (https://txn.account.box.com/) to upload files with my customers. If you have box account, you can upload to box and share it with me. Thanks