This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Prefetch Abort:ARM Instruction at 0x0000000CH

Iam using LPC2888,using keil evaluation version(mdk322a).
here is the code which compiled without any error and warning.but when i tried to debug this iam getting the

Prefetch Abort:ARM Instruction at 0x0000000CH

#include <LPC288x.H>
void wait (void)
{ int d; for (d = 0; d < 1000000; d++);
}

main()
{ int i; MODE0_2 = 0xff;

while(1) {

for (i = 1<<16; i < 1<<23; i <<= 1) { MODE0S_2 = i; wait (); MODE0C_2 = i; }

for (i = 1<<23; i > 1<<16; i >>=1 ) { MODE0S_2 = i; wait (); MODE0C_2 = i; } }
}

my keil settings are:
R/O Base : 0x10400000
R/W BAse : 0x00400000

please guide me iam new to LPC2888..
Thanks

Parents
  • Thank you very much for your reply. yes.you are right when i just commented my code and just had the while then also iam getting the same problem while debugging.. can you please suggest me how and what to do to start the code from 0x10400000.Any more settings required for compiler?

Reply
  • Thank you very much for your reply. yes.you are right when i just commented my code and just had the while then also iam getting the same problem while debugging.. can you please suggest me how and what to do to start the code from 0x10400000.Any more settings required for compiler?

Children