[SOLVED] J-link line commander ---- Make it like a batch file

  • [SOLVED] J-link line commander ---- Make it like a batch file

    I have 3 ".bin" files.

    I can respectively call them and load it through the J-Link Line commander. However, I am looking for a way to load them like a batch file without typing. Boom Boom Boom!

    In other words, they are already written in a batch file ( The name of the file and type of my Micro). I guess I need to have the sourec file but I might have another solution. Don't I?! Any ideas?

    Thanks!
  • Hi,

    J-Link Command files can be used for this task.
    For example:


    C Source Code

    1. JLink.exe -device STM32f407IG -if SWD -speed 4000 -autoconnect 1 -CommandFile C:\Temp\BatchProgramming.jlink

    Contents of BatchProgramming.jlink :

    C Source Code

    1. r
    2. loadfile C:\Temp\File1.bin
    3. r
    4. loadfile C:\Temp\File2.bin
    5. r
    6. loadfile C:\Temp\File3.bin


    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,

    you wrote "dvice" instead of "device".


    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,

    what error?
    I doubt that you get the same error as before.

    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.
  • Oh you are right Niklas!

    It is different now! Seems it does know "autoconnect"! It is prompting me -1 for default auto connect. It is stuck there!

    Do you know how I can get the full list of command line commands? Like -device -Autoconnect or so?
  • Hi,

    the commands are listed in UM8001 (UM08001_JLink.pdf) Chapter "J-Link software and documentation package" section "J-Link Commander" subsection "Commands" and subsection "Command line options"
    UM8001 ships with the J-Link software & documentation pack


    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.