- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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.
IMTMemtool.exe program.bat
program.bat:
connect
open_file C:\fw.hex
select_all_sections
add_selected_sections
program
disconnect
exit
However, if I try to pass the hex file as a parameter by changing the 2nd line in program.bat to
open_file %1
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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.
Best,
TBencher