1
2
3
4
5import isystem.connect as ic
6
7def main():
8 print('isystem.connect version: ' + ic.getModuleVersion())
9
10
11 cmgr_STM = ic.ConnectionMgr()
12 ccfg_STM = ic.CConnectionConfig().workspace('../../../targetProjects/SampleSTM32.xjrf')
13 cmgr_STM.connect(ccfg_STM)
14 debug_STM = ic.CDebugFacade(cmgr_STM)
15
16
17 cmgr_TC = ic.ConnectionMgr()
18 ccfg_TC = ic.CConnectionConfig().workspace('../../../targetProjects/SampleTC399XE.xjrf')
19 cmgr_TC.connect(ccfg_TC)
20 debug_TC = ic.CDebugFacade(cmgr_TC)
21
22
23
24
25
26 debug_STM.download()
27 debug_TC.download()
28
29
30if __name__ == "__main__":
31 main()