I want to run a .cmm file in TRACE32 ICD ARM32 SIM using python
and I use the following way and it doesn't seem to work、
import ctypes # module for C data types
import enum # module for C data types
import os # module for paths and directories
import subprocess # module to create an additional process
import time # time module
t32_exe = os.path.join('C:' + os.sep, 'T32','bin', 'windows64', 't32marm.exe')
config_file = os.path.join('C:' + os.sep, 'T32', 'configsim.t32')
start_up = os.path.join('C:' + os.sep, 'T32', 'demo', 'arm', 'compiler', 'arm', 'cortexm.cmm')
command = [t32_exe, '-c', config_file, '-s', start_up]
process = subprocess.Popen(command)
time.sleep(5)
# Load TRACE32 Remote API
t32api64 = os.path.join('C:' + os.sep, 'T32','demo', 'api', 'capi', 'dll', 't32api64.dll')
t32api = ctypes.cdll.LoadLibrary(t32api64)
t32api.T32_Cmd(b"CD.DO ~~/demo/arm/compiler/arm/cortexm.cmm")
I want to run offline cmm using trace32. You can now open the TRACE32 ICD ARM32 SIM, but using T32_Cmd to execute cmm has no effect.
Kindly help me with the procedure to do so