Re: SMDK2410 in-circuit emulation issue
- From: "Anthony Pellerin" <apellerin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 09:32:57 +0100
Do you load your code in the internal SRAM of the processor or in an
external SDRAM? For the latter, you'll have to do a set of initializations
first.
HTH
--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
<sharaf.cool@xxxxxxxxx> a écrit dans le message de news:
9342157f-8efc-4b01-bb3f-f727dcc96778@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- Follow-Ups:
- Re: SMDK2410 in-circuit emulation issue
- From: sharaf . cool
- Re: SMDK2410 in-circuit emulation issue
- References:
- SMDK2410 in-circuit emulation issue
- From: sharaf . cool
- SMDK2410 in-circuit emulation issue
- Prev by Date: Re: USB messagebox
- Next by Date: Re: Limitation in the number of visible Access Points?
- Previous by thread: SMDK2410 in-circuit emulation issue
- Next by thread: Re: SMDK2410 in-circuit emulation issue
- Index(es):
Relevant Pages
|