import isystem.connect as ic
def main():
print('isystem.connect version: ' + ic.getModuleVersion())
cmgr_STM = ic.ConnectionMgr()
ccfg_STM = ic.CConnectionConfig().workspace('../../../targetProjects/SampleSTM32.xjrf')
cmgr_STM.connect(ccfg_STM)
debug_STM = ic.CDebugFacade(cmgr_STM)
cmgr_TC = ic.ConnectionMgr()
ccfg_TC = ic.CConnectionConfig().workspace('../../../targetProjects/SampleTC399XE.xjrf')
cmgr_TC.connect(ccfg_TC)
debug_TC = ic.CDebugFacade(cmgr_TC)
debug_STM.download()
debug_TC.download()
if __name__ == "__main__":
main()