Hello Community !
I'm trying to use a USB-TINY JTAG from Olimex with a custom board I made
(lpc2148) using OpenOCD , but I get the message : Error validating JTAG scan
chain , IR mismatach, scan returned 0x00.
I tested the same board with the Olimex JTAG WIggler using LPT port and it works
well, I can access it using the OCD commander and with IAR workbench,
I tested the USB-TINY with an Olimex lpc2468 and it works well.
Do you have any Idea what is wrong ?
here is my config file :
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 10
#use combined on interfaces or targets that can't set TRST/SRST
separately
reset_config trst_and_srst separate
#reset_config srst_pulls_trst separate
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target
#target arm7tdmi
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 20000 calc_checksum
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
Thank you.
Z.
OpenOCD and ARM-USB_TINY JTAG (olimex)
Started by ●March 25, 2010
Reply by ●March 26, 20102010-03-26
Hi,
have you tried to use the configuration files of OpenOCD?
The interface section is correct for the Olimex ARM-USB-TINY,
but as far as I see ../tcl/target/lpc2148.cfg has some differences to
your configuration.
Kind Regards
--- In l..., "zanakca" wrote:
> Hello Community !
>
> I'm trying to use a USB-TINY JTAG from Olimex with a custom board I made (lpc2148) using OpenOCD , but I get the message : Error validating JTAG scan chain , IR mismatach, scan returned 0x00.
> I tested the same board with the Olimex JTAG WIggler using LPT port and it works well, I can access it using the OCD commander and with IAR workbench,
> I tested the USB-TINY with an Olimex lpc2468 and it works well.
>
> Do you have any Idea what is wrong ?
>
> here is my config file :
>
> #daemon configuration
> telnet_port 4444
> gdb_port 3333
>
> #interface
> interface ft2232
> ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
> ft2232_layout "olimex-jtag"
> ft2232_vid_pid 0x15BA 0x0004
> jtag_speed 10
>
> #use combined on interfaces or targets that can't set TRST/SRST separately
> reset_config trst_and_srst separate
> #reset_config srst_pulls_trst separate
>
> #jtag scan chain
> #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
> jtag_device 4 0x1 0xf 0xe
>
> #target configuration
> daemon_startup reset
>
> #target
> #target arm7tdmi
> target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
> run_and_halt_time 0 30
>
> #target_script 0 reset oocd_flash2138.script
> working_area 0 0x40000000 0x40000 nobackup
>
> #flash configuration
> flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 20000 calc_checksum
>
> # For more information about the configuration files, take a look at:
> # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
>
> Thank you.
> Z.
>
have you tried to use the configuration files of OpenOCD?
The interface section is correct for the Olimex ARM-USB-TINY,
but as far as I see ../tcl/target/lpc2148.cfg has some differences to
your configuration.
Kind Regards
--- In l..., "zanakca" wrote:
> Hello Community !
>
> I'm trying to use a USB-TINY JTAG from Olimex with a custom board I made (lpc2148) using OpenOCD , but I get the message : Error validating JTAG scan chain , IR mismatach, scan returned 0x00.
> I tested the same board with the Olimex JTAG WIggler using LPT port and it works well, I can access it using the OCD commander and with IAR workbench,
> I tested the USB-TINY with an Olimex lpc2468 and it works well.
>
> Do you have any Idea what is wrong ?
>
> here is my config file :
>
> #daemon configuration
> telnet_port 4444
> gdb_port 3333
>
> #interface
> interface ft2232
> ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
> ft2232_layout "olimex-jtag"
> ft2232_vid_pid 0x15BA 0x0004
> jtag_speed 10
>
> #use combined on interfaces or targets that can't set TRST/SRST separately
> reset_config trst_and_srst separate
> #reset_config srst_pulls_trst separate
>
> #jtag scan chain
> #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
> jtag_device 4 0x1 0xf 0xe
>
> #target configuration
> daemon_startup reset
>
> #target
> #target arm7tdmi
> target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
> run_and_halt_time 0 30
>
> #target_script 0 reset oocd_flash2138.script
> working_area 0 0x40000000 0x40000 nobackup
>
> #flash configuration
> flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 20000 calc_checksum
>
> # For more information about the configuration files, take a look at:
> # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
>
> Thank you.
> Z.
>