[SOLVED] Using JTAG on "Command Files"; Problems after Update

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

  • [SOLVED] Using JTAG on "Command Files"; Problems after Update

    Hey guys! So i recently made the update from 4.86 to 6.12g

    I used to flash my AT91SAM7X256 with SWD but I figured out, that I have to use JTAG now and im struggling with the correct
    syntax on the "commander file" (NOT the C-like script file) (reference to 3.2.3 in the "J-Link J-Trace User Guide").

    When i am using the j-link.exe commander manually, I neither get problems with the 4000khz default speed or the JTAGConf -1,-1
    Thats why I do not understand the failing start from my application.

    Here is my Application call with the exit after 10s of no response:

    C Source Code

    1. Start arguments: ("-CommanderScript", "C:/Users/XXXXX/AppData/Roaming/XXXXX_ARM_Prog/XXXXX-PP_ARM.jlink")
    2. Starting Jlink
    3. ""
    4. exit= -1


    And this is my .jlink-File (command file):

    C Source Code

    1. device = AT91SAM7X256
    2. if JTAG
    3. JTAGConf -1, -1
    4. speed adaptive
    5. r
    6. h
    7. loadbin Y:/Syslab/Projekte/TMCM-1060(siehe_auch_TMCM-1160)/Software/TMCM-1060Image_V448.bin, 0x100000
    8. r
    9. g
    10. qc


    Do you recognize anything wrong?

    Thanks for the help!
  • Hi,

    could you please give a try to pass -JTAGConf as a command line option instead of specifying it in the command file?
    If the issue persists, could you please give a try to use the command file from the windows command line directly?


    Best regards,
    Niklas
    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,


    good to hear that you are up and running!


    Best regards,
    Niklas
    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.