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
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