Hello,
I have a batch file that calls JLink.exe to set it up and run a command file.
.bat file contents
Code
"C:\Program Files\SEGGER\JLink_V792o\JLink.exe" -device AT91SAM4SA16C -if swd -speed 4000 -CommandFile "C:\Users\Tester\Desktop\New Board Programming\Data\J-Tag Fusion\test_jtag_full_load_new.jlink"
pause
command file contents
Code
connect
si 1
speed 4000
reset
halt
erase 0x400000,0xFFFFFF
loadbin ExampleFile.bin,0x400000
exit
When I right click the .bat file located in a folder on my desktop and run it, I have no issue with it running. When I call the .bat file in LabVIEW, I get the following error:
J-Link>loadbin Example.bin,0x400000
'loadbin': Performing implicit reset & halt of MCU.
Downloading file [Sam4sRecoveryFullImage.bin]...
Failed to open file.
J-Link>exit
My question is, if it is failing to open the file, is there any other way I could call that file for it to be able to work though LabVIEW?