[SOLVED] Increase Jlink.exe programming speed

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

  • [SOLVED] Increase Jlink.exe programming speed

    Hello there,
    I am using a script to program my target:

    Source Code

    1. /c JLink.exe loadscript_debug.txt


    loadscript_debug.txt:

    Source Code

    1. # Set JTAG speed to 30 kHz
    2. monitor speed 30
    3. exec device = STM32F407VG
    4. loadfile "my_file.hex"
    5. r
    6. g
    7. q


    No matter what parameter I give for monitor speed the programming takes the same amount of time, pretty long, whereas when I debug in TrueStudio, the programming takes like 10 times less.
    Is there a way to increase programming speed in the script? I would apreciate all help!
  • Hi,

    monitor speed is a command for J-Link GDB, not jlink.exe.

    Example:

    Batch:
    JLink.exe -device STM32F407VG -if JTAG -speed 8000 -CommanderScript ScriptFile.jlink

    ScriptFile.jlink:
    r
    loadfile my_file.hex
    r
    g
    q


    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.