Hello,
I'm having a few issues with my project setup. I just upgraded to uVision 4.22a (at the suggestion of Keil support) and since then my uVision setup has been producing unexpected, inconsistent problems. Note: The two may be unrelated I'm just explaining the situation.
When I start the debugger if I try and step into the first instruction the debugger exits immediately. If I try to run it is caught in a loop somewhere before it even enters my SystemInit (note this is an LPC1788 target)
I believe this is probably a configuration/setup issue but I can't figure out a way to debug this. This project was working yesterday and I haven't made any code changes? Is it possibly related to the Code Read Protection of the micro? Ulink Pro drivers? Differences in how the INI files are run?
Any suggestions would be appreciated.
I get an error: "Can not stop the cortex-M device"
I've tried playing with the JTAG speed but no difference.
I'm still at a loss as to how to track down my problem.
I have come up with a pattern that I can now repeat to get my system working but I have no idea why:
1) Initial state: project not working (downloads and verifies Ok but does not run)
2) comment a single line of code that leads to the linker removing a large number of modules.
3) compile, download and debug (reduced application) no problem.
4) uncomment line of code from step 2.
5) compile, download and debug full application no problem.
6) restart computer.
7) back to step 1.
Anybody?