I have been running the following command in CMD to successfully program the MCU by passing a batch file to IMTMemtool.exe with the file to be opened hardcoded in the bat file.
However, if I try to pass the hex file as a parameter by changing the 2nd line in program.bat to
and use the following command
IMTMemtool.exe program.bat C:\fw.hex
I get the error "Batch execution failed in line 1 !"
How would I pass the hex file as a parameter to the batch file?