Ok, so before anyone points me to the slew of posts about this topic, I have read them and have not found any suggestions that help. I have MDK v4.12 and a uLink2 adapter. I am working with the EA_LPC2478 demo board with the QVGA display. I can load code using FlashMagic with no issues whatsoever, but I have to be able to debug my programs so that doesn't really help. Here is what I have tried thus far:
I have verified that the flash utility settings are correctly setup to allow the adapter to load the algorithm to flash (address: 0x40000000, size: 0x0800).
I found that the resest/boot pins for the ISP port interfere with the JTAG connection so I disconnect them if I'm not loading code through FlashMagic.
I have tried loading a known good program as well as a dummy program (int main (void) { while(1);}) with no changes after that.
I have tried just erasing the chip with FlashMagic, also no change in the errors thrown by Keil.
Keil updated the adapter firmware at one point early on, so that should be good.
I have verified that CRP is disabled through FlashMagic.
From what I have read in other posts, there seems to be three typical causes of this error: RAM algorithm location not set up, CRP is enabled locking out JTAG access, or there is a program loaded using P2.10 which then messes something up. I believe I have run tests to rule each of these out, which leaves me with little else to work with. I find it hard to believe that it can be this hard to connect a JTAG adapter to a microcontroller. Both NXP and Keil need to take a lesson from SiLabs, make them cheap and fully compatible with the supported devices without making customers jump through all these hoops!
This is a very hot issue for me, so if anyone has a suggestion, please respond!
Thanks!