OCFreaks!

LPC2148 Keil uVision ARM7 Interrupt Problem and Issue fix


Many guys including me have been facing a problem with KEIL uVision4 with ARM7 based microcontrollers like LPC2148 where the Interrupts or IRQs wont execute even if the code is correct .. but now I’ve found a simple trick to make the interrupts work. Even I have wasted a long time trying to figure out what the heck was going wrong with KEIL4 or ARM7 Vectored Interrupt controller . This problem was not there with KEIL3 and the code would work flawless.

To make your interrupts fire in KEIL4 for you ARM7 based microcontrollers .. all you need to do is : ‘Check’ a Checkbox in Target options Under the Linker Tab and you are Done! I don’t know why .. but KEIL4 doesn’t do this automatically when you create new project.

Step 1 – Click Target Options which will open a new Window. Next click on the ‘Linker’ Tab:

Step 2 – Check the very first checkbox called “Use Memory layout from Target Dialog”:

Now , rebuild your target and run the simulation. Interrupts must fire now.

For those having similar problem on Crossworks for ARM / Yagarto or any other GNU based ARM toolchain a fix is @ Here

Whether this helped you or not please let me know in your comments.

Exit mobile version