[SOLVED] Question about JLink scripts

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Question about JLink scripts

    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?
  • [SOLVED] Question about JLink scripts

    Do you have a reference script from another debug probe?
    Can you link to the datasheet that describes the sequence?
    Is it possible that the device in question is an MCU from TI and you are trying to initialize the ICEPick on it?
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Are we talking about the Cortex-A8 based TI OMAP35x chips?
    Any particular eval board (e.g. BeagleBone)?
    Or custom HW?
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi,

    Please find attached a script for the TI DM3730.
    Has a fair chance that the OMAP355x is similar (not identical!!!).
    Especially the part that says "Put ARM core in JTAG chain" needs to be checked because on the OMAP355x it may not be SDTAP3 register but something else.
    Also, the ResetTarget() will very likely work different for the OMAP355x...
    However, better than nothing.


    BR
    Alex
    Files
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Thank you very much for your support. I will try this script.
    By the way, is there any kind of repository where all available scripts for different MCUs can be found? The number of scripts which are available in installation folder of J-Link software is quite limited.
  • No, most scripts are not public domain and only given out in specific cases.


    BR
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.