PDA

View Full Version : OpenOCD


rolf
06-04-07, 04:23 PM
Hi,

I got here and TinyARM 2106 and 2131 and want to use OpenOCD with a Wiggler-JTAG.
Anyone got it working?



This is the configuration I used:

#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 7

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 500
jtag_ntrst_delay 500

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s4
run_and_halt_time 0 30

working_area 0 0x40000000 0x40000 nobackup

#flash configuration
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 10000 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0


This the full log:
Debug: jtag.c:1335 jtag_init(): -
Debug: parport.c:378 parport_init(): requesting privileges for parallel port 0x378...
Debug: parport.c:388 parport_init(): ...privileges granted
Debug: parport.c:213 parport_reset(): trst: 0, srst: 0
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: jtag.c:1220 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: openocd.c:104 main(): jtag init complete
Debug: embeddedice.c:218 embeddedice_read_reg_w_check(): 4
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST released
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: embeddedice.c:218 embeddedice_read_reg_w_check(): 0
Debug: embeddedice.c:314 embeddedice_write_reg(): 0: 0x00000000
Debug: arm7_9_common.c:658 arm7_9_assert_reset(): target->state: unknown
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: SRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Warning: arm7_9_common.c:685 arm7_9_assert_reset(): srst resets test logic, too
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: SRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: parport.c:213 parport_reset(): trst: 1, srst: 1
Debug: parport.c:213 parport_reset(): trst: 1, srst: 1
Debug: arm7_9_common.c:724 arm7_9_deassert_reset(): target->state: reset
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: SRST released
Debug: jtag.c:1126 jtag_reset_callback(): -
Debug: parport.c:213 parport_reset(): trst: 0, srst: 0
Debug: openocd.c:108 main(): target init complete
Debug: openocd.c:112 main(): flash init complete
Debug: openocd.c:116 main(): NAND init complete
Debug: openocd.c:120 main(): pld init complete
Debug: gdb_server.c:1347 gdb_init(): gdb service for target arm7tdmi at port 3333
Debug: embeddedice.c:218 embeddedice_read_reg_w_check(): 1
Debug: jtag.c:278 jtag_call_event_callbacks(): jtag event: TRST released
Debug: jtag.c:1126 jtag_reset_callback(): -
Warning: jtag.c:1068 jtag_read_buffer(): value captured during scan didn't pass the requested check: captured: 0x04 check_value: 0x01 check_mask: 0x0f
Error: arm7_9_common.c:612 arm7_9_poll(): JTAG queue failed while reading EmbeddedICE status register

Thanx...

PS a working release of OCDRemote is also welcome (cannot be downloaded without buying stuff from Macraigor..)
PPS any other suggestion for use with an Olimex Wiggler is also welcome...

nmitech
06-05-07, 09:57 AM
Besure to read the "TiniARM Debugging with Eclipse" appnote provided by James P. Lynch with step by step instruction how to use the Wiggler JTAG with TiniARM. Development with Eclipse, the link can be found on any NMI 'ARM product. Here is the direct link,
http://www.newmicros.com/download/appnotes/ARM/TiniARM_Dev_Eclipse.zip