ATSAME70 Xplaind Kit, ATSAMS70 custom board with Olimex ARM-USB-TINY-H, OpenOCD

Started by abhisheklolage, December 31, 2017, 03:24:01 PM

Previous topic - Next topic


Hi all,

I have ATMEL's ATSAME70 Xplaind Kit which runs with CMSIS-DAP interface correctly through OpenOCD.

I want to connect to the board using the JTAG adapter "Olimex ARM-USB-TINY-H". I use Ubuntu 16.04 and using the latest OpenOCD version 0.10 which supports SAMS, SAME, SAMV targets. FTDI library was installed and OpenOCD was configured for the same.

While using the above jtag adapter thorugh OpenOCD:

sudo openocd -f /usr/local/share/openocd/scripts/board/atmel_same70_xplained.cfg

I get the following output:

Open On-Chip Debugger 0.10.0+dev-00226-g1c2e3d4 (2017-12-29-01:35)
Licensed under GNU GPL v2
For bug reports, read
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 1800 kHz
cortex_m reset_config sysresetreq
Info : flash bank command
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : clock speed 1800 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: atsame70q21.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response

I also have a custom-made PCB which has a SAMS70Q20 ATMEL chip. The same problem - "scan chain interrogation failed; saw all zeros" error is seen with SAMS70 as well.

Need urgent help.

Thank you.



When you are trying to program SAM E70 Xplained Evaluation Kit are you using the JTAG connector J406? If you do, then there is the problem - this connector has only SWD interface routed (not full JTAG). Compare Figure 4-27 JTAG/ICE Interface Schematic that is available on page 37 of the datasheet ( with the layout of ARM-USB-TINY-H:

You need a SWD adapter to get the SWD interface working with ARM-USB-TINY-H. The adapter is called ARM-JTAG-SWD.

Alternatively, inspect the schematic of SAM E70 Xplained Evaluation Kit (page 50) and locate the TCK, TDI, TDO, TMS, RESET_N signals and where they are routed to. Then using jumper wires connect ARM-USB-TINY-H accordingly.

Best regards,
Technical support and documentation manager at Olimex


I tried connecting SWD interface pins available on the JTAG header J406 with Olimex ARM-JTAG-SWD + Olimex ARM-USB-TINY-H and it connected successfully. I was also able to connect to a custom board with the same connections.

Thanks a lot LubOlimex for your reply. :)