Hi,
I am using Olimex ARM-USB-TINY for debugging. I installed the yogarto toolchain with the help of the .exe supplied with the ARM-USB-TINY cd. I am able to run the flash version of the example project given for my board with AT91sam7s256. But there is no project to run from RAM. So I followed James P. Lynch’s tutorial and downloaded the example projects for olimex AT91sams64 and modified as mentioned by the author for sam256. Although the project builds with few quirks but I am unable to debug it.
Modifications to build-
-
I use sam7flash.script instead of script.ocd as supplied with tutorial since I got a build error which asked for this file. I do not know how to specify script.ocd instead of sam7flash.script.
-
I Added armusbocd_tiny.cfg and armusbocd.cfg which must be present in the project directory for the toolcain to work
Following Peter’s tutorial I created debug launch configuration for debugging from RAM as:
Initialize command:
“target remote localhost:3333
Run command:
monitor soft_reset_halt
monitor armv4_5 core_state arm
monitor mww 0xffffff60 0x00320100
monitor mww 0xfffffd44 0xa0008000
monitor mww 0xfffffc20 0xa0000601
monitor wait 100
monitor mww 0xfffffc2c 0x00480a0e
monitor wait 200
monitor mww 0xfffffc30 0x7
monitor wait 100
monitor mww 0xfffffd08 0xa5000401
set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 1024
set remote memory-read-packet-size fixed
monitor mww 0xfffffd00 0xa5000004
monitor mww 0xffffff00 0x01
monitor reg pc 0x00000000
monitor arm7_9 sw_bkpts enable
load
continue
Now when I launch debug configuration it gives following output in console:
target remote localhost:3333
0x0000080c in ?? ()
Warning: /cygdrive/C/gccfd/projects/demo_at91sam7_p64_blink_ram: No such file or directory.
monitor soft_reset_halt
requesting target halt and executing a soft reset
monitor armv4_5 core_state arm
core state: ARM
monitor mww 0xffffff60 0x00320100
memory write caused data abort (address: 0xffffff60, size: 0x4, count: 0x1)
monitor mww 0xfffffd44 0xa0008000
monitor mww 0xfffffc20 0xa0000601
monitor wait 100
monitor mww 0xfffffc2c 0x00480a0e
monitor wait 200
monitor mww 0xfffffc30 0x7
monitor wait 100
monitor mww 0xfffffd08 0xa5000401
set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 1024
set remote memory-read-packet-size fixed
monitor mww 0xfffffd00 0xa5000004
monitor mww 0xffffff00 0x01
monitor reg pc 0x00000000
pc (/32): 0x00000000
monitor arm7_9 sw_bkpts enable
software breakpoints enabled
load
Loading section .text, size 0xf48 lma 0x200000
Loading section .data, size 0x44c lma 0x200f48
Start address 0x200000, load size 5012
Transfer rate: 10 KB/sec, 835 bytes/write.
continue
It hangs after that and shows "launching 27% progress
Can anybody suggest me how to make it work.
Regards
Rohit