winIDEA SDK
Loading...
Searching...
No Matches
connect_to_multiple_winideas.py
1# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7def main():
8 print('isystem.connect version: ' + ic.getModuleVersion())
9
10 # connect to the first winIDEA instance and instantiate debugCtrl controller
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 # connect to the second winIDEA instance and instantiate debugCtrl controller
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 # perform operations on desired target
23
24
25 # perform operations on desired target
26 debug_STM.download()
27 debug_TC.download()
28
29
30if __name__ == "__main__":
31 main()