Discussion Forum

Why is it going into Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Author
Vinay Kumar
Posted
21-Dec-2011 12:10 GMT
Toolset
ARM
New! Why is it going into Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H

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
------------------------------------------------------------------------------------------------------------------------------

Author
John Linq
Posted
22-Dec-2011 01:06 GMT
Toolset
ARM
New! RE: Why is it going into Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H

LPC23XX User manual
Chapter 2: LPC23XX memory addressing
Table 8. LPC2300 memory usage
0xFFE0 8000 - 0xFFE0 BFFF External Memory Controller (EMC) (LPC2377/78, LPC2388 only)

==> you are using a LPC2387.

Author
John Linq
Posted
22-Dec-2011 01:10 GMT
Toolset
ARM
New! RE: Why is it going into Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H

Most likely,
your startup code accesses the External Memory Controller,
which works for LPC2378, but doesn't work for LPC2387.

Author
Vinay Kumar
Posted
22-Dec-2011 05:27 GMT
Toolset
ARM
New! RE: Why is it going into Data Abort: ARM Instruction at 0000012CH, Memory Access at FFE08000H

Thanks Sir, Your Information Helped.

Next Thread | Thread List | Previous Thread Start a Thread | Settings