winIDEA SDK
Loading...
Searching...
No Matches
connect_to_multiple_winideas.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
def main():
print('isystem.connect version: ' + ic.getModuleVersion())
# connect to the first winIDEA instance and instantiate debugCtrl controller
cmgr_STM = ic.ConnectionMgr()
ccfg_STM = ic.CConnectionConfig().workspace('../../../targetProjects/SampleSTM32.xjrf')
cmgr_STM.connect(ccfg_STM)
debug_STM = ic.CDebugFacade(cmgr_STM)
# connect to the second winIDEA instance and instantiate debugCtrl controller
cmgr_TC = ic.ConnectionMgr()
ccfg_TC = ic.CConnectionConfig().workspace('../../../targetProjects/SampleTC399XE.xjrf')
cmgr_TC.connect(ccfg_TC)
debug_TC = ic.CDebugFacade(cmgr_TC)
# perform operations on desired target
# perform operations on desired target
debug_STM.download()
debug_TC.download()
if __name__ == "__main__":
main()