AnsweredAssumed Answered

The elf loader file is not accessible [only via *.bat]

Question asked by Martin Kathke on May 29, 2018
Latest reply on May 29, 2018 by AvaTar

Hello everybody,

i have a strange problem, hope that someone has a great idea what i can do...


We have custom board's with the stm32f7 and f4. Normaly we flash the device via bat (or open ocd(which is working)).

The bat looks like this:


..\st-link\ST-LINK_CLI.exe -c SWD UR -Rst
..\st-link\ST-LINK_CLI.exe -c SWD UR -P firmware.hex
..\st-link\ST-LINK_CLI.exe -c SWD UR -P bootloader.hex
..\st-link\ST-LINK_CLI.exe -c SWD UR -Rst



Since someday's i get the follow error message while flashing:


The elf loader file is not accessible.


This is the complete output from the console:


ST-LINK SN : 33FF68064D4E353545150843
ST-LINK Firmware version : V2J24S4
Connected via SWD.
SWD Frequency = 4000K.
Target voltage = 3.2 V.
Connection mode : Connect Under Reset.
Device ID:0x449
Device flash Size : 512 Kbytes
Device family :STM32F74x/F75x

Loading file...
Flash Programming:
File : firmware.hex
Address : 0x00200000
Memory programming...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 0%
The elf loader file is not accessible.


We have this problem on two PC's and one PC is working.


I already tried:

Flashing via St-Utility -> Working without a problem

Flashing via openocd -> Working without a problem

SWD Frequenz to 1800K -> Same problem

Updated St-Utility -> Same problem

Firmware Update the St-Link -> Same problem

Take a Brandnew ST-Link -> Same problem

Updated Win driver -> Same problem

Taking the st-link from the pc which is working -> Same problem


What can i do or try?


If you know something i would be very happy


Thank you and have a nice day!