I’m running open openocd on ubuntu 11.10; my purpouse
is to load my code in my evaluation board: atmel at91sam9xe-ek (at91sam9260-ek),
using a jtag j-link probe.
I run:
$ openocd --file /usr/share/openocd/scripts/interface/jlink.cfg --file /usr/share/openocd/scripts/target/atmel_at91sam9260-ek.cfg
info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled Feb 8 2012 14:30:39
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9336
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 3.319 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : RCLK (adaptive clock speed)
Info : JTAG tap: at91sam9260.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0)
Info : Embedded ICE version 6
Info : at91sam9260.cpu: hardware has 2 breakpoint/watchpoint units
After that i try to connect using gdb:
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000000 in ?? ()
(gdb) monitor reset halt
RCLK - adaptive
target state: halted
target halted in ARM state due to debug-request, current mode: Undefined instruction
cpsr: 0x000000db pc: 0x00000004
MMU: disabled, D-Cache: disabled, I-Cache: disabled
jlink_usb_message failed with result=1)
jlink_tap_execute, wrong result -107 (expected 1)
JTAG tap: at91sam9260.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0)
target state: halted
(gdb) load getting-started-project-at91sam9xe-ek-at91sam9xe512-sram.elf
Loading section .fixed, size 0x1c30 lma 0x300000
Start address 0x300070, load size 7216
Ignoring packet error, continuing…
Ignoring packet error, continuing…
Transfer rate: 195 KB/sec, 7216 bytes/write.
(gdb) continue
Continuing.
Reply contains invalid hex digit 79
(gdb)
At this step opeocd replyes:
Error: gdb requested a non-existing register
Info : dropped ‘gdb’ connection.
Am I omitting some relevant configuration,
which is the reason for those errors i read?
Bye,
G.