How can i change the state of TAP? I’m working with str9.
tnx
Lucio
How can i change the state of TAP? I’m working with str9.
tnx
Lucio
I don’t think I understand what you want to do. The state of the TAP statemachine is continously changed, while the OpenOCD talks to the target.
Maybe you could explain what you’re trying to achieve.
Regards,
Dominic
sorry for the explanation dominic, my problem is :
the scan of IR register performed by amontec demo is 29 instead 01 so openocd returns the error.
A previous post told that maybe the error is caused by a wrong state of TAP.
therefore i ask if is it possible to change that state.
tnx[/quote]
Hi, my config file is this:
telnet_port 4444
gdb_port 3333
interface parport
parport_cable wiggler
#parport_layout wiggler
parport_port /dev/parport0
jtag_speed 0
reset_config trst_and_srst srst_pulls_trst
jtag_device 4 0x1 0xf 0xe
daemon_startup reset
target arm7tdmi little reset_run 0 arm7tdmi-s_r4
flash bank lpc2000 0x0 0x7D000 0 0 lpc2000_v2 0 12000 calc_checksum
When I uncoment the line “working_area 0 0x40000000 0x4000 nobackup” this error happens:
secchin:/home/alexandre/work# openocd -f arm7tdmi-s.cfg -d
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-08-20 17:00 CEST)
Error: target.c:972 handle_working_area_command(): target number ‘0’ not defined
secchin:/home/alexandre/work#
When I coment this line: “# working_area 0 0x40000000 0x4000 nobackup” this error happens:
secchin:/home/alexandre/work# openocd -f arm7tdmi-s.cfg -d
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-08-20 17:00 CEST)
Debug: jtag.c:1184 jtag_init():
Warning: parport.c:367 parport_init(): No parport port specified, using default ‘0x378’ (LPT1)
Debug: parport.c:373 parport_init(): requesting privileges for parallel port 0x378…
Debug: parport.c:383 parport_init(): …privileges granted
Debug: parport.c:210 parport_reset(): trst: 0, srst: 0
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Debug: bitbang.c:223 bitbang_execute_queue(): statemove end in 0
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in 0
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 3f
Debug: jtag.c:988 jtag_read_buffer(): fields[0].in_value: 3f
Error: jtag.c:1123 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 3f
secchin:/home/alexandre/work#
Other thing: The openocd enters in prompt mode for execute the instructions or I am obliged use a script in config file or in another file? I don’t know if openocd enters in prompt mode because it never ran with me!
Remembering that I am using the Wiggler Cable with the ARM7TDMI-S LPC2138.
Thank you.
Other thing:
I already tried to use 0x378 in parport_port but don’t run. I have the same error!
secchin:/home/alexandre/work# openocd -f arm7tdmi-s.cfg -d
Info: openocd.c:82 main(): Open On-Chip Debugger (2006-08-20 17:00 CEST)
Debug: jtag.c:1184 jtag_init():
Debug: parport.c:373 parport_init(): requesting privileges for parallel port 0x378…
Debug: parport.c:383 parport_init(): …privileges granted
Debug: parport.c:210 parport_reset(): trst: 0, srst: 0
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Debug: bitbang.c:223 bitbang_execute_queue(): statemove end in 0
Debug: jtag.c:240 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1070 jtag_reset_callback():
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in 0
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 3f
Debug: jtag.c:988 jtag_read_buffer(): fields[0].in_value: 3f
Error: jtag.c:1123 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 3f
Thank you.