[ABANDONED] JLink Commander Documentation not clear

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

  • [ABANDONED] JLink Commander Documentation not clear

    Hello.

    I'm trying to figure out how to flash my device using the JLink Commander but the documentation is not clear. I can find the commands in the UM08001_JLink document as well as when typing "?" when executing just JLink. I can read that, for example, the command to verify a binary is "verifybin". But there is no example that shows the form of the complete command. The example in the UM08001_JLink document says:

    Source Code

    1. verifybin C:\Work\test.bin 0x0000000


    But when I execute on linux:

    Source Code

    1. JLink verifybin ../test.bin 0x0000000


    I get the error:
    SEGGER J-Link Commander V6.16j (Compiled Jul 24 2017 18:54:25)
    DLL version V6.16j, compiled Jul 24 2017 18:54:20

    Unknown command line option verifybin.


    So my question is, how am I supposed to run the JLink commander?

    It does not work either with --verifybin nor with -verifybin.

    I need to run this on a bash script so it does not work for me to first execute JLink and then the commands one by one.

    Thanks for helping!
  • Hi,

    "verifybin", is a command, not a command line option.
    Therefore, the example shows the complete command.

    You can use the command line option "-CommanderScript" in order to pass a list of commands to execute.
    This is also described in UM08001.

    Example:

    Source Code

    1. JLink.exe -device STM32F103ZE -if SWD -speed 4000 -CommanderScript C:\CommandFile.jlink

    Contents of CommandFile.jlink:

    Source Code

    1. connect
    2. r
    3. h
    4. loadbin C:\\firmware.bin,0x08000000


    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.