Debugging Arm926ej-s
Hi,
I'm new to crossworks and am trying to debug an Arm926ej-s inside a SoC. I'm using the generic Arm package with
CW 2.2. The vendor supplied sample code is based on IAR's EW. If compiled in IAR, it generates a binary which is
written to the flash on the board. For the solution, I think I picked Generic->Arm9 Board, executable running
from flash and ram, but I'm not sure. I converted sample code to compile in CW and generated a bin file which I wrote to the flash using the vendor's supplied program. The sample code is supposed to toggle a GPIO, but it doesn't. To debug, I connect via Mcgraigor 20-pin wiggler and select Debug->Go. The Output shows:
Checking "arm9exe" in configuration ARM Flash Debug
Preparing target for download
Downloading to Wiggler
Verifying completed
Verify failed
It seems that I can get to disassembly via Target->Attach Debugger. The disassembly shows a part of crt0.s,
around __fast_end__. I can read/write registers and step thru code, but only in disassembly.
For the more experienced users out there, can anyone suggest what one would do next to be able to debug properly?
It would be nice to step thru with the source code and not in disassembly.
Thanks!
-
I restarted with a new solution to try different compile options and when I connect to target, CW says 'can't find Loader.elf'. As I understand, loaders are downloaded 1st and then it helps download the rest of the code. Since my program just toggles GPIO, it's small and shouldn't need a loader. Am I wrong, or is this needed for debugging?
Please sign in to leave a comment.
Comments
1 comment