Hello,
I am going to pass information about data abort reason (Data Fault Address Register and Data Fault Status Register) to the application.
I am conscious that I can get value of the register from c15 using this instruction:
__asm(" MRC p15, #0, R11, c6, c0, #0"); /* here I copied value to R11 */
but currently can't do more.
In TI compiler I can't use these commands:
register int dfar __asm("R11"); /* accessing registers using named register variables */
__asm volatile ("MOV %0, LR\n" : "=r" (result) ); /* copy value to variable 'result' */
If I try I get warning: #1493-D GCC-style explicit register variables are not supported"
I found similar issue here:
e2e.ti.com/support/microcontrollers/hercules/f/312/t/280370
but there were no any explanation how to exactly do it.
So, how can I pass value of Data Fault Address Register and Data Fault Status Register to application?