[SOLVED] starting JLinkExe with command file starts to prompt for input

  • Hello,
    I just upgraded by JLink software to version V6.10k on OS/X and this broke my build and test environment. We build and execute jlink scripts based on configured build targets. For example, to erase the flash of a device, we generate a file called erase.jlink and use JLinkExe to execute this file. This worked fine, for the last two years, but now with the new version, JLinkExe starts to propt for additional informations:

    ...
    Please specify device / core. <Default>: NUC140LE3
    Type '?' for selection dialog
    Device>q
    Please specify target interface:
    J) JTAG (Default)
    S) SWD
    F) FINE
    I) ICSP
    C) C2
    TIF>

    Is there a way to get the old behavior back, that is backwards compatible for those team members that do not / can not upgrade to the new version?

    Thanks, in advance and kind regards,

    Torsten Robitzki

    Edit: And I see the same issue with version V6.10k

  • Hi Torsten,

    sth. seems to be missing here, as erasing a target is not (and never was) possible without specifying a target device name, since there is no generic way of erasing the flash memory of a device.

    However, working with J-Link Commander (JLinkExe) can still be fully automated by specifying the target device name, target interface, target speed and, if JTAG is used, the position in the JTAG chain (-1, -1 can be passed for auto detection).
    These can be passed via command line parameters or via Commander files like the ones you use already.
    The commands and command line parameters are explained in UM8001.

    Please do not hesitate to ask if you need any further help.

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • Hi Torsten,

    In addition to what Niklas wrote: https://wiki.segger.com/J-Link_Commander#Batch_processing


    - Erik

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!