Hello all,

I'm new to OpenOCD.  POLLUX's JTAG device ID is properly recognized;
however, 'halt' does not work and causes time-outs.

Here is the description of the problem:
H/W: Custom board running POLLUX (ARM926ej-s at 533MHz) with Wiggler
S/W: OpenOCD SVN-r1172 on Linux

Config file:
----------------------------------------
telnet_port 4444
gdb_port 3333

#interface
interface parport
parport_port 0x378
parport_cable wiggler
debug_level 3
fast disable
jtag_speed 8

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

target create target0 arm926ejs -endian little -chain-position 0
-variant arm926ejs
----------------------------------------

Output Log:
----------------------------------------
[EMAIL PROTECTED] ~/Desktop/dl/development/openocd-svn/src $ sudo ./openocd
-f pollux-openocd.cfg
Password:
Open On-Chip Debugger 1.0 (2008-11-17-11:30) svn:1172


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Debug:   11 1 command.c:91 script_command(): script_command - fast
Debug:   12 1 command.c:108 script_command(): script_command - fast,
argv[0]=ocd_fast
Debug:   13 1 command.c:108 script_command(): script_command - fast,
argv[1]=disable
Debug:   15 1 command.c:91 script_command(): script_command - jtag_speed
Debug:   16 1 command.c:108 script_command(): script_command -
jtag_speed, argv[0]=ocd_jtag_speed
Debug:   17 1 command.c:108 script_command(): script_command -
jtag_speed, argv[1]=8
Debug:   18 1 jtag.c:1961 handle_jtag_speed_command(): handle jtag speed
User:    19 1 command.c:372 command_print(): jtag_speed: 8
Debug:   21 2 command.c:91 script_command(): script_command - jtag_device
Debug:   22 2 command.c:108 script_command(): script_command -
jtag_device, argv[0]=ocd_jtag_device
Debug:   23 2 command.c:108 script_command(): script_command -
jtag_device, argv[1]=4
Debug:   24 2 command.c:108 script_command(): script_command -
jtag_device, argv[2]=0x1
Debug:   25 2 command.c:108 script_command(): script_command -
jtag_device, argv[3]=0xf
Debug:   26 2 command.c:108 script_command(): script_command -
jtag_device, argv[4]=0xe
Debug:   28 2 command.c:91 script_command(): script_command - jtag_nsrst_delay
Debug:   29 2 command.c:108 script_command(): script_command -
jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay
Debug:   30 2 command.c:108 script_command(): script_command -
jtag_nsrst_delay, argv[1]=200
Debug:   32 2 command.c:91 script_command(): script_command - jtag_ntrst_delay
Debug:   33 3 command.c:108 script_command(): script_command -
jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay
Debug:   34 3 command.c:108 script_command(): script_command -
jtag_ntrst_delay, argv[1]=200
Debug:   36 3 command.c:91 script_command(): script_command - reset_config
Debug:   37 3 command.c:108 script_command(): script_command -
reset_config, argv[0]=ocd_reset_config
Debug:   38 3 command.c:108 script_command(): script_command -
reset_config, argv[1]=trst_and_srst
Debug:   39 3 command.c:108 script_command(): script_command -
reset_config, argv[2]=srst_pulls_trst
Debug:   40 3 target.c:3990 jim_target(): Target command params:
Debug:   41 3 target.c:3991 jim_target(): target create target0
arm926ejs -endian little -chain-position 0 -variant arm926ejs
Debug:   43 3 command.c:91 script_command(): script_command - init
Debug:   44 3 command.c:108 script_command(): script_command - init,
argv[0]=ocd_init
Debug:   45 4 openocd.c:143 handle_init_command(): target init complete
Debug:   46 4 parport.c:402 parport_init(): requesting privileges for
parallel port 0x378...
Debug:   47 4 parport.c:412 parport_init(): ...privileges granted
Debug:   48 4 parport.c:237 parport_reset(): trst: 0, srst: 0
Debug:   49 4 openocd.c:150 handle_init_command(): jtag interface init complete
Debug:   50 4 jtag.c:1621 jtag_init_inner(): Init JTAG chain
Debug:   51 4 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug:   52 4 jtag.c:1301 jtag_reset_callback(): -
Debug:   53 4 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug:   54 4 jtag.c:1301 jtag_reset_callback(): -
Info:    55 48 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0x07926f0f (Manufacturer: 0x787, Part: 0x7926, Version: 0x0)
Debug:   56 70 jtag.c:327 jtag_call_event_callbacks(): jtag event:
JTAG controller reset (TLR or TRST)
Debug:   57 70 jtag.c:1301 jtag_reset_callback(): -
Debug:   58 70 openocd.c:156 handle_init_command(): jtag init complete
Debug:   59 101 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000
Debug:   60 121 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug:   61 122 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Debug:   62 125 openocd.c:159 handle_init_command(): jtag examine complete
Debug:   63 125 openocd.c:165 handle_init_command(): flash init complete
Debug:   64 125 openocd.c:169 handle_init_command(): mflash init complete
Debug:   65 146 openocd.c:173 handle_init_command(): NAND init complete
Debug:   66 146 openocd.c:177 handle_init_command(): pld init complete
Debug:   67 146 gdb_server.c:2205 gdb_init(): gdb service for target
arm926ejs at port 3333
Warning: 68 146 tcl_server.c:178 tcl_init(): no tcl port specified,
using default port 6666
Info:    69 10848 server.c:84 add_connection(): accepting 'telnet'
connection from 0
Debug:   71 12592 command.c:91 script_command(): script_command - halt
Debug:   72 12592 command.c:108 script_command(): script_command -
halt, argv[0]=ocd_halt
Debug:   73 12592 target.c:1807 handle_halt_command(): -
Debug:   74 12592 arm7_9_common.c:1065 arm7_9_halt(): target->state: running
Debug:   75 12592 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000002
Debug:   76 12598 target.c:1787 target_wait_state(): waiting for
target halted...
Error:   86 17594 target.c:1794 target_wait_state(): timed out while
waiting for target halted
Debug:   87 17595 command.c:416 run_command(): Command failed with error code -4
User:    88 17595 command.c:616 openocd_jim_vfprintf(): Runtime error,
file "command.c", line 445:
User:    89 17596 command.c:616 openocd_jim_vfprintf():
----------------------------------------

What may be the possible causes?
I tested OpenOCD with the same Wiggler cable on my Cool-Karaoke
device, which is a ARM920t SC32442b chip, and it works properly.  At
least 'mdw' works.

Thanks in advance.


brian

-- 
brian
------------------
Cool-Karaoke - The smallest recording studio, in your palm
http://cool-idea.com.tw/xoops/ck-product.php

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to