winIDEA SDK
connect_to_multiple_winideas.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8print('isystem.connect version: ' + ic.getModuleVersion())
9
10# connect to the first winIDEA instance and instantiate debugCtrl controller
11cmgr_STM = ic.ConnectionMgr()
12ccfg_STM = ic.CConnectionConfig().workspace('../../../targetProjects/SampleSTM32.xjrf')
13cmgr_STM.connect(ccfg_STM)
14debug_STM = ic.CDebugFacade(cmgr_STM)
15
16# connect to the second winIDEA instance and instantiate debugCtrl controller
17cmgr_TC = ic.ConnectionMgr()
18ccfg_TC = ic.CConnectionConfig().workspace('../../../targetProjects/SampleTC399XE.xjrf')
19cmgr_TC.connect(ccfg_TC)
20debug_TC = ic.CDebugFacade(cmgr_TC)
21
22# perform operations on desired target
23
24
25# perform operations on desired target
26debug_STM.download()
27debug_TC.download()