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
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?
Sorry I don't know - I don't use your processor. But I did open an example provided by Keil for a LPC2888 based USB device which gave the same error upon startup in the simulator. Maybe it is worth asking Keil what is happening?
Thank you once again.. I will drop a mail to keil support group.
looks like you want to run this program in the simulator. However the LPC2888 device is not fully simulated. Therefore the access to peripherals will create the Prefetch Abort.
http://www.keil.com/dd lists devices along with the simulation features. For http://www.keil.com/dd/chip/4186.htm there are no simulation features listed.
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