Thanks a lot Niklas.
The problem for me has been relating/translating this text (with no reference to connect, write or key in the text)
## Function : Do a send-only JTAG IR/DR scan.
Parameter : The route to JTAG shift state is 'shortest transition'.
Parameter : The JTAG shift state is 'shift-dr'.
Parameter : The JTAG destination state is 'pause-dr'.
Parameter : The bit length of the command is '8'.
Parameter : The send data value is '0x00000089'.
Parameter : The actual receive data is 'discarded'.
to this
_ICEPICK_CONNECT_WRITE_KEY = 0x89;
Anyways, as of now, the current status is, I am still unable to connect to the target. I am getting
The manual says (section: Initial Scan Chain Configuration), "The EMU0 and EMU1 pins should be pulled high at power-on-reset to configure the initial scan chain of the device to the TAP Router-only mode. In the TAP Router-only configuration, none of the secondary TAPs are selected. "
But, the script seems to have writing JTAG sequence.
Also, could you please let me know how to get/confirm the following values.
The problem for me has been relating/translating this text (with no reference to connect, write or key in the text)
## Function : Do a send-only JTAG IR/DR scan.
Parameter : The route to JTAG shift state is 'shortest transition'.
Parameter : The JTAG shift state is 'shift-dr'.
Parameter : The JTAG destination state is 'pause-dr'.
Parameter : The bit length of the command is '8'.
Parameter : The send data value is '0x00000089'.
Parameter : The actual receive data is 'discarded'.
to this
_ICEPICK_CONNECT_WRITE_KEY = 0x89;
Anyways, as of now, the current status is, I am still unable to connect to the target. I am getting
I think, I am unable to perform a TAP reset to make sure that icepick is the only device in the JTAG chain (to start with).Entering custom J-Link script file!
ICEPick IDCODE: 0x00000000
Cannot read DAP IDCODE. Expected 0xXXXXX02F, read: 0x00000000
TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
cannot connect to target
The manual says (section: Initial Scan Chain Configuration), "The EMU0 and EMU1 pins should be pulled high at power-on-reset to configure the initial scan chain of the device to the TAP Router-only mode. In the TAP Router-only configuration, none of the secondary TAPs are selected. "
But, the script seems to have writing JTAG sequence.
So, I am assuming, that if we write this sequence then both EMU0 and EMU1 are pulled high. So, how do I get the "tms" and "tdi" values to write the JTAG sequence?// Perform a TAP reset to make sure that only the ICEPick is in the JTAG chain
//
JTAG_Write(0x1F, 0, 6);
Also, could you please let me know how to get/confirm the following values.
_ICEPICK_IR_IDCODE = 0x04;
_DAP_IR_IDCODE = 0xE;