Amontec Tiny - OMAP5912

I’ll try and make this short. :slight_smile:

I am trying to use OpenOCD with the above hardware.

I’ve found a *.cfg file called amontec-tiny.cfg in /usr/local/lib/openocd/interface/ which I am now using.

I give the command: ```
sudo openocd -f amontec-tiny.cfg

And receive:

Open On-Chip Debugger 1.0 (2008-04-17-13:12) svn:588
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info: jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x07ff3b03 (Manufacturer: 0x581, Part: 0x7ff3, Version: 0x0)
Info: jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x0c24c05f (Manufacturer: 0x02f, Part: 0xc24c, Version: 0x0)
Error: jtag.c:1386 jtag_examine_chain(): number of discovered devices in JTAG chain (4) doesn’t match configuration (0)
Error: jtag.c:1387 jtag_examine_chain(): check the config file and ensure proper JTAG communication (connections, speed, …)
Error: jtag.c:1545 jtag_init_inner(): trying to validate configured JTAG chain anyway…
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1554 jtag_init_inner(): Could not validate JTAG chain, exit
Error: jtag.c:1338 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1545 jtag_init_inner(): trying to validate configured JTAG chain anyway…
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x00
Error: jtag.c:1443 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x01
Error: jtag.c:1554 jtag_init_inner(): Could not validate JTAG chain, exit
Warning: telnet_server.c:624 telnet_init(): no telnet port specified, using default port 4444
Warning: gdb_server.c:1952 gdb_init(): no gdb ports allocated as no target has been specified


I have tried lots of different configuration options, including some I found in _<B>**/usr/local/lib/openocd/target/omap5912.cfg**</B>_, but to no avail.

Infact, I receive:

Open On-Chip Debugger 1.0 (2008-04-17-13:12) svn:588
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 4, 4
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-04-17-13:12) svn:588
Info: jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x03ff1d81 (Manufacturer: 0x6c0, Part: 0x3ff1, Version: 0x0)
Info: jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x0692602f (Manufacturer: 0x017, Part: 0x6926, Version: 0x0)
Warning: telnet_server.c:624 telnet_init(): no telnet port specified, using default port 4444
Warning: gdb_server.c:1958 gdb_init(): no gdb port specified, using default port 3333
Info: jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x03ff1d81 (Manufacturer: 0x6c0, Part: 0x3ff1, Version: 0x0)
Info: jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x0692602f (Manufacturer: 0x017, Part: 0x6926, Version: 0x0)
Error: arm926ejs.c:339 arm926ejs_examine_debug_reason(): BUG: unknown debug reason: 0x0


Would anyone be kind enough to help me please?

We can help, but please attach us the two .cfg you are using with the Amontec JTAGkey.

There a lot of different .cfg!

Regards,

Laurent

http://www.amontec.com

I’ve pulled them together into one *.cfg now.

## amontec-tiny.cfg
#interface
interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
jtag_speed 4
jtag_nsrst_delay 200
jtag_ntrst_delay 200

## omap5912.cfg
#TI OMAP5912 dual core processor - http://www.ti.com
#on a OMAP5912 OSK board http://www.spectrumdigital.com.

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

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 38 0x0 0x0 0x0
jtag_device 4  0x1 0x0 0xe
jtag_device 8  0x0 0x0 0x0

#target configuration
daemon_startup reset

#target <type> <endianness> <reset mode> <chainpos> <variant>
target arm926ejs little run_and_init 1 arm926ejs
target_script 0 reset event/omap5912_reset.script
run_and_halt_time 0 30

# omap5912 lcd frame buffer as working area
working_area 0 0x20000000 0x3e800 nobackup

#flash bank <driver> <base> <size> <chip_width> <bus_width>
flash bank cfi 0x00000000 0x1000000 2 2 0

Verify Emu0 and EMU1 are low (0V) when TRST_N is driven low on startup sequence.

Then try with

jtag_speed 20

The OMAP5912 is an ARM9 -s core. When using the Amontec JTAGkey (no RTCK feature) with a ARM7/9 -s core, please verify your JTAG TCK clock is less than 1/6 of the internal processor clock.

Please note that for the Cortex-M8 (ARM11) the factor is 1/8.

Regards,

Laurent

http://www.amontec.com

AMONTEC:
Verify Emu0 and EMU1 are low (0V) when TRST_N is driven low on startup sequence.

How do I do that?