controlling trace32 via command line

2019-02-28 23:08发布

问题:

I have to flash single output files one by one to mpc controller, instead of using the GUI i am trying to do it automatically via command prompt, i have searched and i found this link controlling lauterbach through command line i tried to use the demo in C:\T32\demo\api\capi\test\t32rem.exe like the answer says but i can not find the t32rem.exe specified in the answer Can anyone please help me ?

回答1:

t32rem.exe should be located at C:\T32\bin\windows\t32rem.exe

However for your goal of programming a flash without the GUI, I would recommend to use a PRACTICE script (*.cmm file) instead of using the remote API. Pass your PRACTICE script to your TRACE32 executable on start with -s <file>

E.g.

C:\T32\bin\windows\t32mppc.exe -s C:\T32\myFlashScript.cmm

In your script use the FLASH commands and close TRACE32 with QUIT <returncode>