Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

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
0 Replies