[SOLVED] jflash.exe executed from command line sometimes has error writing jflash.ini (Windows 10)

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

  • [SOLVED] jflash.exe executed from command line sometimes has error writing jflash.ini (Windows 10)

    When executing jflash.exe from the command line, sometimes it gives an error that it can't write jflash.ini. This error doesn't always occur. JFlash.exe is part of Segger J-link v631b running on Windows 10, and the command prompt is not run as administrator. I'm also using a J-link plus compact v10.1.

    Here's the command that is executed from within a project folder and not from the location of jflash.exe:
    "C:\Program Files (x86)\SEGGER\JLink_V631b\jflash.exe" -openprj".\pac55xx.jflash" -open".\Release\pac55xx_example_code.bin",0x0000 -auto -startapp
    The error is:
    - Error: Could not save file [C:\Program Files (x86)\SEGGER\JLink_V631b\JFlash.ini]

    The full output from the Jflash console is:
    Application log started
    - J-Flash V6.31b (J-Flash compiled Mar 2 2018 17:38:00)
    - JLinkARM.dll V6.31b (DLL compiled Mar 2 2018 17:37:53)
    Opening project file [.\pac55xx.jflash] ...
    - Error: Could not save file [C:\Program Files (x86)\SEGGER\JLink_V631b\JFlash.ini]
    Access is denied!
    - Project opened successfully
  • Hello,

    Thank you for your inquiry.
    The folder you are trying to write to is write protected by admin rights.
    Simply select another saving location for your project file and you should not see this error message anymore.
    Alternatively operate J-Flash with admin privileges if you really want to write into the installation folder.

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