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?
I hope you already solved your problem. But just in case. The Memtool is not originated by Infineon. Hence, its functionality is limited. If I am not wrong, the tool was developed by PLS. They have the version which provides all the functionalities including script access. Feel free to contact them.