So, last night, I got an ARM assembly language program to build. No errors, no warnings.
Running it in Debugger didn't work so well. I think I included a couple of the errors in the last post.
I assumed it was a problem with my code, but what if I'm using the debugger wrong?
So, this is what's currently happening when I run HelloWorld in debugger:
Dissassembly window:
13: MOV R3, R3 ;
0x00000000 0330A0E1 TEQEQ R0,#0x000000E1
14: MOV R3, #25 ;
15:
16:
17:
18: stop
0x00000004 1930A0E3 LDMNEDB R0!,{R0-R1,R5-R7,R13,PC}
19: BAL stop
0x00000008 FEFFFFEA (???)
0x0000000C 00000000 ANDEQ R0,R0,R0
0x00000010 00000000 ANDEQ R0,R0,R0
0x00000014 00000000 ANDEQ R0,R0,R0
0x00000018 00000000 ANDEQ R0,R0,R0
0x0000001C 00000000 ANDEQ R0,R0,R0
Command window:
*** Error: 'C:\Keil\ARM\BIN\DARMO.DLL' not found
Running with Code Size Limit: 32K
Load "C:\\keil\\MyProgs\\aHello\\HelloWorld.AXF"
*** Restricted Version with 32768 Byte Code Size Limit
*** Currently used: 12 Bytes (0%)
Hmm. What the hell's DARMO.DLL? (It is not a DLL on my system. It's not in the help.)
And if I hit F5, I get this error:
*** error 65: access violation at 0xFFFFFFFC : no 'read' permission
I put a couple of hard returns in before "start" and now if I single step, it goes back and forth between 0x00000000 and 0x00000004.
I recognize LDMNEDB as a branch -- what I don't understand is why its there.
Back to the manual.
Back from the manual.
Did some poking around and settled on trying to run the Hello example that comes with the debugger - written in C. I'm just as puzzled as before. The Dissassembly window looks like C code where each line is followed by the assembly code to implement the C code.
Then why doesn't my HelloWorld source code correspond to the assembly commands in the Dissassembly window in my example?
Well, that has to do it for tonight.
One tidying up task -- I didn't install the GNU compiler that I downloaded with the Keil tools. Maybe that has the DLL I was looking for or some other help. I'll poke around in it tomorrow.
Tuesday, December 8, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment