SMDK2410 in-circuit emulation issue
- From: sharaf.cool@xxxxxxxxx
- Date: Mon, 28 Jan 2008 18:54:45 -0800 (PST)
Hi,
I have an issue on in-circuit emulation using MAJIC through AXD on
SMDK2410.
This image was loaded to SMDK2410 using MAJIC through AXD.
The code is a simple assembly, which is as follows:
AREA subrout, CODE, READONLY ; name this block of code
ENTRY ; mark first instruction
; to execute
start
MOV r0, #10 ; Set up parameters
MOV r1, #3
BL doadd ; Call subroutine
stop
MOV r0, #0x18 ;
angel_SWIreason_ReportException
LDR r1, =0x20026 ; ADP_Stopped_ApplicationExit
SWI 0x123456 ; ARM semihosting SWI
doadd
ADD r0, r0, r1 ; Subroutine code
MOV pc, lr ; Return from subroutine.
END ; Mark end of file
However, in AXD, the following is shown as the dissassembly of the
above code:
......... ............ ...... ...............
......... ............ ...... ...............
......... ............ ...... ...............
23ffffe0 [0x65656565] strvsb r6,[r5,#-0x565]!
23ffffe4 [0x65656565] strvsb r6,[r5,#-0x565]!
23ffffe8 [0x65656565] strvsb r6,[r5,#-0x565]!
23ffffec [0x65656565] strvsb r6,[r5,#-0x565]!
23fffff0 [0x65656565] strvsb r6,[r5,#-0x565]!
23fffff4 [0x65656565] strvsb r6,[r5,#-0x565]!
23fffff8 [0x65656565] strvsb r6,[r5,#-0x565]!
23fffffc [0x65656565] strvsb r6,[r5,#-0x565]!
start [0x65656565] strvsb r6,[r5,#-0x565]!
24000004 [0x65656565] strvsb r6,[r5,#-0x565]!
24000008 [0x65656565] strvsb r6,[r5,#-0x565]!
stop [0x65656565] strvsb r6,[r5,#-0x565]!
24000010 [0x65656565] strvsb r6,[r5,#-0x565]!
24000014 [0x65656565] strvsb r6,[r5,#-0x565]!
doadd [0x65656565] strvsb r6,[r5,#-0x565]!
2400001c [0x65656565] strvsb r6,[r5,#-0x565]!
24000020 [0x65656565] dcd 0x65656565 eeee
24000024 [0x65656565] dcd 0x65656565 eeee
24000028 [0x65656565] dcd 0x65656565 eeee
2400002c [0x65656565] dcd 0x65656565 eeee
24000030 [0x65656565] dcd 0x65656565 eeee
24000034 [0x65656565] dcd 0x65656565 eeee
......... ............ ...... ................
......... ............ ...... ................
......... ............ ...... ................
Hence while single-stepping the instructions upto ADD r0, r1
it is actually executing strvsb r6,[r5,#-0x565]!.
I guess it it is a configuration issue, but I am clueless as where I
made the mistake.
Can you help me on this?
Thank you,
Sharafuddeen N
.
- Prev by Date: Re: Debugging microcontroller with another crystal oscillator on uC.
- Previous by thread: Realview debugger 3.1 endianess problems
- Index(es):
Relevant Pages
|