AnsweredAssumed Answered

Problems in i.mx6 board with openocd

Question asked by hwei on Jun 25, 2014
Latest reply on Jul 31, 2014 by hwei

Hi, is there anyone good at openocd?

I have a Boundarydevices Sabrelite board(imx6q) and try to connect to the jtag port using a olimex arm-usb-ocd-h adapter and openocd 0.8.0.

 

While I first tried to connect it, it displayed errors:

sudo openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/imx6.cfg

Open On-Chip Debugger 0.8.0 (2014-06-24-14:47)

Licensed under GNU GPL v2

For bug reports, read

  http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'jtag'

Warn : imx6.sdma: nonstandard IR value

adapter speed: 1000 kHz

Info : clock speed 1000 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: imx6.dap: IR capture error; saw 0x00 not 0x01

Warn : Bypassing JTAG setup events due to errors

Warn : Invalid ACK 0 in JTAG-DP transaction

It turned out to be the adapter pin connection errors.

But after correcting that problem, another issue appeared:

sudo openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/imx6.cfg

Open On-Chip Debugger 0.8.0 (2014-06-24-12:15)

Licensed under GNU GPL v2

For bug reports, read

  http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'jtag'

Warn : imx6.sdma: nonstandard IR value

adapter speed: 1000 kHz

Info : clock speed 1000 kHz

Info : JTAG tap: imx6.dap tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

Info : TAP imx6.sdma does not have IDCODE

Info : JTAG tap: imx6.sjc tap/device found: 0x2191c01d (mfg: 0x00e, part: 0x191c, ver: 0x2)

Warn : Invalid ACK 0x7 in JTAG-DP transaction

and it still couldn't work properly.

I got some debug information like:

Info : 271 30 core.c:949 jtag_examine_chain_display(): JTAG tap: imx6.dap tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)

Info : 272 30 core.c:1067 jtag_examine_chain(): TAP imx6.sdma does not have IDCODE

Info : 273 30 core.c:949 jtag_examine_chain_display(): JTAG tap: imx6.sjc tap/device found: 0x2191c01d (mfg: 0x00e, part: 0x191c, ver: 0x2)

Debug: 274 30 core.c:1206 jtag_validate_ircapture(): IR capture validation scan

Debug: 275 30 core.c:1263 jtag_validate_ircapture(): imx6.dap: IR capture 0x01

Debug: 276 30 core.c:1263 jtag_validate_ircapture(): imx6.sdma: IR capture 0x00

Debug: 277 30 core.c:1263 jtag_validate_ircapture(): imx6.sjc: IR capture 0x01

Debug: 278 30 openocd.c:145 handle_init_command(): Examining targets...

Debug: 279 30 target.c:1401 target_call_event_callbacks(): target event 21 (examine-start)

Debug: 280 30 arm_adi_v5.c:827 ahbap_debugport_init():

Warn : 281 30 adi_v5_jtag.c:252 jtagdp_transaction_endcheck(): Invalid ACK 0x7 in JTAG-DP transaction

Debug: 282 30 openocd.c:147 handle_init_command(): target examination failed

Debug: 283 30 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash init

Debug: 284 30 command.c:145 script_debug(): command - ocd_flash ocd_flash init

Debug: 286 30 tcl.c:870 handle_flash_init_command(): Initializing flash devices...

Debug: 287 30 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_mflash init

Debug: 288 30 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init

Debug: 290 30 mflash.c:1379 handle_mflash_init_command(): Initializing mflash devices...

Debug: 291 30 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nand init

Debug: 292 30 command.c:145 script_debug(): command - ocd_nand ocd_nand init

Debug: 294 30 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...

Debug: 295 30 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_pld init

Debug: 296 30 command.c:145 script_debug(): command - ocd_pld ocd_pld init

Debug: 298 30 pld.c:207 handle_pld_init_command(): Initializing PLDs...

 

Does anyone have ideas how to deal with that? Thanks for any suggestions.

Outcomes