Am 07.07.2010 20:42, schrieb Spencer Oliver:
On 07/07/2010 19:20, Andreas Schmidt wrote:
But I get only download speeds of 1kB/sec. Why is this so slow? How can
I speed up the download?
My start-script from Eclipse (Zylin Embedded CDT) looks like this:

init-commands:

target remote localhost:3333
monitor reset_halt
monitor gdb_breakpoint_override hard
monitor arm7_9 dcc_downloads enable
monitor reset init
monitor sleep 500
monitor poll
monitor flash probe 0
monitor flash erase_sector 0 0 15
load

I can't find any mistake in configuration.


you sure this is correct?
if openocd is correctly sending the memory map then the gdb_breakpoint_override and erase/probe are not required.

Also is the first monitor reset_halt a typo?

a debug log of openocd would help to verify any other issues.

Cheers
Spen

thanks for fast response.
Well, I'm not realy sure ;-)

The normale output of openocd looks like this (If this is not enough, I can also post a logging with debug messages enabled)



Open On-Chip Debugger 0.5.0-dev-snapshot (2010-06-24-07:26)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.berlios.de/doc/doxygen/bugs.html
2000 kHz
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Info : device: 4 "2232C"
Info : deviceID: 364511235
Info : SerialNumber: FTSXQW4GA
Info : Description: Olimex OpenOCD JTAG A
Info : clock speed 2000 kHz
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Info : Embedded ICE version 1
Info : sam7x256.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting 'gdb' connection from 3333
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000001f pc: 0x00104bf8
Warn : NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'. Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'. Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000001f pc: 0x00104bf8
Warn : NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'. Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
Warn : acknowledgment received, but no packet pending
dcc downloads are enabled
Info : JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000001f pc: 0x00104bf8
Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
background polling: on
TAP: sam7x256.cpu (enabled)
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000001f pc: 0x00104bf8
flash 'at91sam7' found at 0x00100000
erased sectors 0 through 15 on flash bank 0 in 0.093739s

The console of eclipse and gdb show this:

source .gdbinit
target remote localhost:3333
idle_thread (p=0x0) at C:\RoboCar\WorkspaceECU/lib_chibios/source/common/chsys.c:55
55      }
monitor arm7_9 dcc_downloads enable
dcc downloads are enabled
monitor reset init
JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000001f pc: 0x00104bf8
NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
monitor sleep 500
monitor poll
background polling: on
TAP: sam7x256.cpu (enabled)
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000001f pc: 0x00104bf8
monitor flash probe 0
flash 'at91sam7' found at 0x00100000
monitor flash erase_sector 0 0 15
erased sectors 0 through 15 on flash bank 0 in 0.093739s
load
Loading section .text, size 0x68b0 lma 0x100000
Loading section .data, size 0x1d0 lma 0x1068b0
Start address 0x100000, load size 27264
Transfer rate: 1 KB/sec, 9088 bytes/write.
Breakpoint 3 at 0x100054: file C:\RoboCar\WorkspaceECU/lib_chibios/source/sam7\crt0.s, line 52.
break ResetHandler

What I'm confused about is that OpenOCD says in log there are nor DCC Download enabled but in the GDB Console it shows

monitor arm7_9 dcc_downloads enable
dcc downloads are enabled

I'm also not sure whether my reset-init event handler is executed. I only see Info : clock speed 2000 kHz and not 6000kHz

best regards
Andy
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to