IMX6sx JTAG

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6sx JTAG

Jump to solution
3,090 Views
werner2005
Contributor II

Hi,

I'm using the IMX6 SOLOX COM BOARD by Embedded Artists.  I used a JLINK Debugger with OpenOCD 0.9.0. The debuging form the Cores working at Uboot like expected, until Linux Kernel boot the JTAG still brocken.

I tried deferent Linux Kernel Versions:

- IMX-Linux: imx_3.14.52_1.1.0_ga: Hangs after caam initialization
  - IMX-Linux: imx_4.1.15_1.0.0_ga: Can't Connect JTAG
  - Linux Mainline: Linux Stable 4.7: Can't Connect JTAG

 

I start the M4 in U-boot. Program init core and go to Infinitiv loop.

 

I Attached the OpenOCD Script and the DTC Files for Linux 4.7.

 

Can somebody help me with this Problem?

 

OpenOCD output while linux Kernel is booting:

 

Open On-Chip Debugger 0.9.0 (2016-07-26-22:15)

Licensed under GNU GPL v2

For bug reports, read

  http://openocd.org/doc/doxygen/bugs.html

adapter speed: 1000 kHz

Warn : Transport "jtag" was already selected

adapter speed: 1000 kHz

Warn : imx6sx.sdma: nonstandard IR value

Warn : imx6sx.sjc: nonstandard IR value

m4_init

Info : J-Link V9 compiled Feb 20 2015 09:20:19

Info : J-Link caps 0xb9ff7bbf

Info : J-Link hw version 93000

Info : J-Link hw type J-Link

Info : J-Link max mem block 70896

Info : J-Link configuration

Info : USB-Address: 0x0

Info : Kickstart power on JTAG-pin 19: 0x0

Info : Vref = 3.214 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1

Info : J-Link JTAG Interface ready

Info : clock speed 1000 kHz

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

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

Info : TAP imx6sx.sdma does not have IDCODE

Info : JTAG tap: imx6sx.sjc tap/device found: 0x0891c01d (mfg: 0x00e, part: 0x891c, ver: 0x0)

Info : imx6sx.dapM4: hardware has 6 breakpoints, 4 watchpoints

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 100ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 300ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 700ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 1500ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 3100ms

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 3100ms

Polling target imx6sx.dapM4 failed, trying to reexamine

Info : imx6sx.dapM4: hardware has 6 breakpoints, 4 watchpoints

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 100ms

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 100ms

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 100ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 300ms

Polling target imx6sx.dapM4 failed, trying to reexamine

Examination failed, GDB will be halted. Polling again in 300ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 700ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 1500ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 3100ms

Warn : Invalid ACK 0 in JTAG-DP transaction

Polling target imx6sx.dapM4 failed, trying to reexamine

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Warn : Invalid ACK 0 in JTAG-DP transaction

Examination failed, GDB will be halted. Polling again in 6300ms

Original Attachment has been moved to: imx6sxea-com-tsn.dts.zip

Original Attachment has been moved to: imx6.cfg.zip

Original Attachment has been moved to: imx6sxea-com.dtsi.zip

Labels (1)
0 Kudos
1 Solution
1,491 Views
werner2005
Contributor II

The second Methoth worked for me:
Debugging Linux Kernel over JTAG with J-Link 
Thanks for you help 

Regads

Andy Werner

View solution in original post

0 Kudos
6 Replies
1,492 Views
werner2005
Contributor II

The second Methoth worked for me:
Debugging Linux Kernel over JTAG with J-Link 
Thanks for you help 

Regads

Andy Werner

0 Kudos
1,491 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Andreas,

Unfortunately we at NXP do not have such board to help you further reproducing your issue, so I can only suggest the usual checks:

1. Try reducing jtag speed

2. Double check config files

3. Usually this error ACK 0 it is related to HW connection, double check that all signals are correct.


Regads,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,491 Views
werner2005
Contributor II

hi Carlos,

tanks for your answer I double check the Connection and slow down stepwise the JTAG Speed down to 10KHz. I have noticed that the error changed after the Linux is fully booted. I Attached a Logic Anaylser with ADC at the Signal seams ok. After the First Tab is Answer at the Schiff Phase the TDO is 0. 

Regads

Andy Werner

Output after boot same output form 10 to 4000kHz.

Open On-Chip Debugger 0.9.0 (2016-07-26-22:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 10 kHz
Warn : Transport "jtag" was already selected
Warn : imx6sx.sdma: nonstandard IR value
Warn : imx6sx.sjc: nonstandard IR value
m4_init
Info : J-Link V9 compiled Feb 20 2015 09:20:19
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 93000
Info : J-Link hw type J-Link
Info : J-Link max mem block 70896
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0x0
Info : Vref = 3.221 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1
Info : J-Link JTAG Interface ready
Info : clock speed 10 kHz
Info : JTAG tap: imx6sx.dapM4 tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : TAP imx6sx.dapA9 does not have IDCODE
Info : TAP imx6sx.sdma does not have IDCODE
Info : TAP imx6sx.sjc does not have IDCODE
Info : TAP auto0.tap does not have IDCODE
Info : TAP auto1.tap does not have IDCODE
Info : TAP auto2.tap does not have IDCODE
Info : TAP auto3.tap does not have IDCODE
Info : TAP auto4.tap does not have IDCODE
Info : TAP auto5.tap does not have IDCODE
Info : TAP auto6.tap does not have IDCODE
Info : TAP auto7.tap does not have IDCODE
Info : TAP auto8.tap does not have IDCODE
Info : TAP auto9.tap does not have IDCODE
Info : TAP auto10.tap does not have IDCODE
Info : TAP auto11.tap does not have IDCODE
Info : TAP auto12.tap does not have IDCODE
Info : TAP auto13.tap does not have IDCODE
Info : TAP auto14.tap does not have IDCODE
Info : TAP auto15.tap does not have IDCODE
Info : TAP auto16.tap does not have IDCODE
Warn : Unexpected idcode after end of chain: 52 0x00000000
Warn : Unexpected idcode after end of chain: 84 0x00000000
Warn : Unexpected idcode after end of chain: 116 0x00000000
Warn : Unexpected idcode after end of chain: 148 0x00000000
Warn : Unexpected idcode after end of chain: 180 0x00000000
Warn : Unexpected idcode after end of chain: 212 0x00000000
Warn : Unexpected idcode after end of chain: 244 0x00000000
Warn : Unexpected idcode after end of chain: 276 0x00000000
Warn : Unexpected idcode after end of chain: 308 0x00000000
Warn : Unexpected idcode after end of chain: 340 0x00000000
Warn : Unexpected idcode after end of chain: 372 0x00000000
Warn : Unexpected idcode after end of chain: 404 0x00000000
Warn : Unexpected idcode after end of chain: 436 0x00000000
Warn : Unexpected idcode after end of chain: 468 0x00000000
Warn : Unexpected idcode after end of chain: 500 0x00000000
Warn : Unexpected idcode after end of chain: 532 0x00000000
Warn : Unexpected idcode after end of chain: 564 0x00000000
Warn : Unexpected idcode after end of chain: 596 0x00000000
Warn : Unexpected idcode after end of chain: 628 0x00000000
Error: double-check your JTAG setup (interface, speed, ...)
Error: Trying to use configured scan chain anyway...
Error: imx6sx.dapA9: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction
Warn : Invalid ACK 0 in JTAG-DP transaction

 

0 Kudos
1,491 Views
werner2005
Contributor II

I still have this Problem. I would be glad if someone could help me.

0 Kudos
1,491 Views
sinanakman
Senior Contributor III

Hi Andreas

If you like to send me your kernel config

I can see if I can try this on a solox board.

I use a different JTAG probe (BDI3000) but

we might still be able to reproduce.

Regards

Sinan Akman

0 Kudos
1,491 Views
werner2005
Contributor II

I used the imx_v6_v7_defconfig config in the Linux 4.7 and the imx_v7_defconfig in the IMX Linux. Thanks for testing.

Regards

Andy Werner

0 Kudos