Probleme mit JTAG und STM32

18/03/2009 - 19:36 von Frank-Christian Krügel | Report spam
Hallo!

Ich habe hier Probleme mit einem Olimex STM32-P103, einem Amontec
JTAGkey und OpenOCD. Irgendwie meint OpenOCD 547 Jtag devices zu finden.

- openocd.cfg --
# Open On-Chip Debugger
# (c) 2005 by Dominic Rath
# (snapshot r247 from SVN tree + giveio, no official release, compiled
my mifi)
#
# --help | -h display this help
# --file | -f use configuration file <name>
# --debug | -d set debug level <0-3>
# --log_output | -l redirect log output to file <name>


# daemon configuration

# logging
#debug 3

# default ports
telnet_port 4444
gdb_port 3333

daemon_startup reset

#gdb_flash_program enable


# interface configuration

interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout jtagkey
jtag_speed 10

jtag_nsrst_delay 100
jtag_ntrst_delay 100

reset_config trst_and_srst


# scan chain configuration

# jtag_device L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask,
IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e


# target configuration

# target <type> <startup mode>
# target cortex_m3 <endianness> <reset mode> <chainpos> <variant>
target cortex_m3 little reset_halt 0
#target cortex_m3 little run_and_halt 0

# run_and_halt_time <target> <time_in_ms>
#run_and_halt_time 0 0

# working_area <target> <address> <size> <backup|nobackup>
working_area 0 0x20000000 0x5000 nobackup

# flash bank <driver> <base> <size> <chip_width> <bus_width> <target>
[options]
# flash bank stm32x <base> <size> 0 0 <target>
flash bank stm32x 0x08000000 0x20000 0 0 0
-

- openocd output -
C:\Programme\openocd-r717\bin>openocd-ftd2xx.exe
Open On-Chip Debugger (2008-06-19 19:00) svn: 717
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Info: options.c:50 configuration_output_handler(): Open On-Chip
Debugger (2008-06-19 19:00) svn: 717
Info: options.c:50 configuration_output_handler(): jtag_speed: 10, 10
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x3ba00477
(Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x16410041
(Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Error: jtag.c:1399 jtag_examine_chain(): number of discovered devices
in JTAG chain (547) doesn't match configuration (2)
Error: jtag.c:1400 jtag_examine_chain(): check the config file and
ensure proper JTAG communication (connections, speed, ...)
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x3ba00477
(Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x16410041
(Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Error: jtag.c:1399 jtag_examine_chain(): number of discovered devices
in JTAG chain (547) doesn't match configuration (2)
Error: jtag.c:1400 jtag_examine_chain(): check the config file and
ensure proper JTAG communication (connections, speed, ...)
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x3ba00477
(Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x16410041
(Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Error: jtag.c:1399 jtag_examine_chain(): number of discovered devices
in JTAG chain (547) doesn't match configuration (2)
Error: jtag.c:1400 jtag_examine_chain(): check the config file and
ensure proper JTAG communication (connections, speed, ...)
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1456 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x0011
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit

C:\Programme\openocd-r717\bin>


Hat jemand eine Idee, was hier faul ist?

Mit freundlichen Grüßen

Frank-Christian Krügel
 

Lesen sie die antworten

#1 Thomas Kindler
18/03/2009 - 22:07 | Warnen spam
Frank-Christian Krügel wrote:
Hallo!


Hi!

Ich habe hier Probleme mit einem Olimex STM32-P103, einem Amontec
JTAGkey und OpenOCD. Irgendwie meint OpenOCD 547 Jtag devices zu finden.
...
C:\Programme\openocd-r717\bin>

Hat jemand eine Idee, was hier faul ist?



Prinzipiell sollte das funktionieren.

Ich würde aber ein aktuelleres OpenOCD empfehlen. Seit ein paar Wochen
gibt es 0.1.0, diesmal mit offiziellen Binaries und Installer:

http://openocd.berlios.de/web/

An den Config-Dateien hat sich seit dem recht viel geàndert, daher würde
ich die Fehlersuche mit der neuen Version fortsetzen.

Thomas Kindler

Ähnliche fragen