5import isystem.connect
as ic
8WORKSPACE_PATH =
r'..\..\..\targetProjects\SampleSTM32-qemu.xjrf'
11def test_launchCore1():
12 cfg = ic.CConnectionConfig()
13 connMgr = ic.ConnectionMgr()
15 print(f
"Is core with index 1 launched: {connMgr.isCoreLaunched(0)}")
17 print(
"Launching core with index 1...")
18 connMgr2 = connMgr.launchCore1(1)
19 wksFilePath = ic.CIDEController(connMgr2).getPath(ic.CIDEController.WORKSPACE_FILE_NAME)
20 print(f
"\tDone, connected to instance: {wksFilePath}")
22 print(
"\tDisconnecting.")
23 connMgr2.disconnect_close(bSaveAll=
False)
26if __name__ ==
"__main__":