smdk2410 in-circuit emulation issue

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

Reply to
sharaf.cool
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.