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 for responding my query. LPC2888 is available in keil device support device list. Iam not tring to access any peripheral as such.
    just tring to toggle the port pins.
    And also if i commented the whole code just kept the
    while(1) then also Iam getting the same error. Can please brief me,You mean We can not simulate any code for LPC2888 by using Keil Evalution version?

    Thank you,
    Swati D

Reply
  • Thank you for responding my query. LPC2888 is available in keil device support device list. Iam not tring to access any peripheral as such.
    just tring to toggle the port pins.
    And also if i commented the whole code just kept the
    while(1) then also Iam getting the same error. Can please brief me,You mean We can not simulate any code for LPC2888 by using Keil Evalution version?

    Thank you,
    Swati D

Children
No data