Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H
Hi ,
I am using the following code with LPC2387 as Target, As on debugging its getting ,it goes into supervisor mode with "Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H". As I have checked LR too, but there is no values at all
http://www.keil.com/support/docs/3080.htm
I did the some code on LPC2378 As target. And I got the correct output.
Enter the value of a:12 Enter the value of b:1323 Enter the value of c:23234 The value of c: 24569
=============================================================================================== General UART As I/O =============================================================================================== #include <LPC23xx.H> #include <stdio.h>
int main) { int a,b,c; /* UART 0 Initialization */ PINSEL0 |= 0x00000050; /* Enable TxD0 in P0.[2] and RxD0 in P0.[3] */
U0LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */ U0DLL = 78; /* 9600 Baud Rate @ 12.0 MHZ PCLK */ U0LCR = 0x03; /* DLAB = 0 */
printf(" \n Enter the value of a:"); /* the 'printf' function call */ scanf("%d",&a);
printf("\n Enter the value of b:"); /* the 'printf' function call */ scanf("%d",&b);
printf(" \n Enter the value of c:"); /* the 'printf' function call */ scanf("%d",&c);
c=a+b+c; printf ("\n The value of c: %d",c); /* the 'printf' function call */
while (1) { /* An embedded program does not stop and */ ; /* ... */ /* never returns. We use an endless loop. */ } /* Replace the dots (...) with your own code. */
}
Best Regards,
Vinay. Kumar
Field Application Engineer Ammos Software Technologies Pvt. Ltd
Direct No : 080-41808616 Mobile No :+91-8861286060 ------------------------------------------------------------------------------------------------------------------------------
Thanks Sir, Your Information Helped.