Hello, I am writing the script for initializing debug over JTAG for one of MCUs. I read from datasheet the sequence of command needed to activate it. For example:
## Function : Update the JTAG preamble and post-amble counts.
Parameter : The IR pre-amble count is '0'.
Parameter : The IR post-amble count is '0'.
Parameter : The DR pre-amble count is '0'.
Parameter : The DR post-amble count is '0'.
Parameter : The IR main count is '6'.
Parameter : The DR main count is '1'.
## 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-ir'.
Parameter : The JTAG destination state is 'pause-ir'.
Parameter : The bit length of the command is '6'.
Parameter : The send data value is '0x00000007'.
Parameter : The actual receive data is 'discarded'.
I know from documentation the commands for JLink Scripts for several parts of this sequence, like
JTAG_IRPre = 0;
JTAG_IRPost = 0;
But I don't know how to write other commands from the list, I didn't find it in the Segger documentation. (for example "The IR main count is '6'." or "The JTAG destination state is 'pause-ir'.")
Could anyone help me with this?
## Function : Update the JTAG preamble and post-amble counts.
Parameter : The IR pre-amble count is '0'.
Parameter : The IR post-amble count is '0'.
Parameter : The DR pre-amble count is '0'.
Parameter : The DR post-amble count is '0'.
Parameter : The IR main count is '6'.
Parameter : The DR main count is '1'.
## 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-ir'.
Parameter : The JTAG destination state is 'pause-ir'.
Parameter : The bit length of the command is '6'.
Parameter : The send data value is '0x00000007'.
Parameter : The actual receive data is 'discarded'.
I know from documentation the commands for JLink Scripts for several parts of this sequence, like
JTAG_IRPre = 0;
JTAG_IRPost = 0;
But I don't know how to write other commands from the list, I didn't find it in the Segger documentation. (for example "The IR main count is '6'." or "The JTAG destination state is 'pause-ir'.")
Could anyone help me with this?