Hello,
I have a IMX6 board which I am trying to program via JTAG.
I have an XDS100V2 programmer and OpenOCD V0.10.0
OpenOCD seems to connect to the IMX6, however it errors and doesn't allow further operation.
I have successfully programmed it via the USB serial downloader and run programs/DDR3 stress test so I know the board is good.
Please see the console output below:
This is on a completely blank/un-programmed IMX6 out of reset with JTAG_MOD=0:
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.htmlInfo : to use this adapter you MUST add ``init; ftdi_set_signal PWR_RST 1; jtag arp_init'' to the end of your config file!
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
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 (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : TAP imx6.sdma does not have IDCODE
Info : JTAG tap: imx6.sjc tap/device found: 0x2191c01d (mfg: 0x00e (Freescale (Motorola)), part: 0x191c, ver: 0x2)
Info : imx6.cpu.0: hardware has 6 breakpoints, 4 watchpoints
Info : TAP imx6.dap does not have IDCODE
Info : JTAG tap: imx6.sdma tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Info : TAP imx6.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
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x00000000"
Error: auto0.tap: IR capture error; saw 0x0003 not 0x0001
Error: Invalid ACK (7) in DAP response
Polling target imx6.cpu.0 failed, trying to reexamine
Error: Invalid ACK (7) in DAP response
Error: Invalid ACK (7) in DAP response
Error: Invalid ACK (7) in DAP response....
Error: Could not initialize the debug port
Examination failed, GDB will be halted. Polling again in 100ms
When I do a "scan_chain"
> scan_chain
TapName Enabled IdCode Expected IrLen IrCap IrMask
-- ------------------- -------- ---------- ---------- ----- ----- ------
0 imx6.dap Y 0x00000000 0x4ba00477 4 0x01 0x0f
1 imx6.sdma Y 0x00000001 0x00000000 4 0x00 0x0f
2 imx6.sjc Y 0x00000000 0x0191c01d 5 0x01 0x1f
0x2191c01d
0x2191e01d
0x1191c01d
3 auto0.tap Y 0x00000000 0x00000000 2 0x01 0x03
4 auto1.tap Y 0x00000000 0x00000000 0 0x00 0x00
5 auto2.tap Y 0x00000000 0x00000000 0 0x00 0x00
I call this using:
openocd -f interface\ftdi\xds100v2.cfg -f target\imx6.cfg
Please provide any advise to get this to work.
Regards
Dominic
Hi Igor,
Thank you for the response, unfortunately the website is blocked at my work place, however I believe I have got it working by removing the command "jtag arp_init" from my configuration file and I am now able to read/write to internal registers.
Regards
Dominic
Hi Dominic
one can look at description on
Programming Guide: OpenOCD + Eclipse + Jtag debug on Uboot & Linux
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------