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:
1 | target remote localhost:3333 |
Run command:
1 | monitor soft_reset_halt |
2 | monitor armv4_5 core_state arm |
3 | monitor mww 0xffffff60 0x00320100 |
4 | monitor mww 0xfffffd44 0xa0008000 |
5 | monitor mww 0xfffffc20 0xa0000601 |
6 | monitor wait 100 |
7 | monitor mww 0xfffffc2c 0x00480a0e |
8 | monitor wait 200 |
9 | monitor mww 0xfffffc30 0x7 |
10 | monitor wait 100 |
11 | monitor mww 0xfffffd08 0xa5000401 |
12 | set remote memory-write-packet-size 1024 |
13 | set remote memory-write-packet-size fixed |
14 | set remote memory-read-packet-size 1024 |
15 | set remote memory-read-packet-size fixed |
16 | monitor mww 0xfffffd00 0xa5000004 |
17 | monitor mww 0xffffff00 0x01 |
18 | monitor reg pc 0x00000000 |
19 | monitor arm7_9 sw_bkpts enable |
20 | load
|
21 | continue
|
Now when I launch debug configuration it gives following output in console:
1 | target remote localhost:3333 |
2 | 0x0000080c in ?? () |
3 | Warning: /cygdrive/C/gccfd/projects/demo_at91sam7_p64_blink_ram: No such file or directory. |
4 | monitor soft_reset_halt |
5 | requesting target halt and executing a soft reset |
6 | monitor armv4_5 core_state arm |
7 | core state: ARM |
8 | monitor mww 0xffffff60 0x00320100 |
9 | memory write caused data abort (address: 0xffffff60, size: 0x4, count: 0x1) |
10 | monitor mww 0xfffffd44 0xa0008000 |
11 | monitor mww 0xfffffc20 0xa0000601 |
12 | monitor wait 100 |
13 | monitor mww 0xfffffc2c 0x00480a0e |
14 | monitor wait 200 |
15 | monitor mww 0xfffffc30 0x7 |
16 | monitor wait 100 |
17 | monitor mww 0xfffffd08 0xa5000401 |
18 | set remote memory-write-packet-size 1024 |
19 | set remote memory-write-packet-size fixed |
20 | set remote memory-read-packet-size 1024 |
21 | set remote memory-read-packet-size fixed |
22 | monitor mww 0xfffffd00 0xa5000004 |
23 | monitor mww 0xffffff00 0x01 |
24 | monitor reg pc 0x00000000 |
25 | pc (/32): 0x00000000 |
26 | monitor arm7_9 sw_bkpts enable |
27 | software breakpoints enabled |
28 | load
|
29 | Loading section .text, size 0xf48 lma 0x200000 |
30 | Loading section .data, size 0x44c lma 0x200f48 |
31 | Start address 0x200000, load size 5012 |
32 | Transfer rate: 10 KB/sec, 835 bytes/write. |
33 | continue
|
It hangs after that and shows "launching<projectname> 27% progress Can anybody suggest me how to make it work. Regards Rohit