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.
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.
Whether this helped you or not please let me know in your comments.