Memtool v4.9 Batch Commands

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
daveloper
Level 1
Level 1
First question asked Welcome!

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?

0 Likes
1 Reply
TBencher
Level 6
Level 6
25 solutions authored 25 likes received 5 questions asked

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

0 Likes