AnsweredAssumed Answered

Problem with debugging using LPC 2138 with J-Link

Question asked by Akshay Chacko on Aug 16, 2019
Latest reply on Aug 19, 2019 by Con Verse
I am trying to debug my LPC 2138 processor using Keil uVision. However, I don't seem to be able to step into the actual code using my J-link. It shows the disassembly but never enters the actual code when I try to debug. I called Keil support, and he guided me through examples where we saw that it does not enter the code in any instance The support at Keil suspected that the processor is stuck on its pre-programming routine and never actually getting into the code to execute He thought there may be some NXP specific code that can't be erased and therefore is not allowing a proper debug If I try to set a breakpoint, I am still not able to enter the code. It just says undefined line number to my breakpoint regardless of where I put it and then the code only loops through the disassembly without ever stepping through the code, starting at address 0x00000000. I am able to get one blinky example to debug, but nothing else. It is worth noting that I am unable to erase all of the flash memory using a program like FlashMagic. How can I step through my code?

Outcomes