8import isystem.connect
as ic
14def test_csVerifyDownloaded():
15 connMgr = ic.ConnectionMgr()
16 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
18 dataCtrl = ic.CDataController(connMgr)
20 print(f
"Verifying downloaded items against selected download file...")
21 wksFolderPath = ic.CIDEController(connMgr).getPath(ic.CIDEController.WORKSPACE_DIR)
22 dlFilePath = os.path.join(wksFolderPath,
"build",
"debug",
"STM32",
"sdk_example_stm32.elf")
24 with tempfile.TemporaryDirectory()
as tmpFolder:
25 filePath = os.path.join(tmpFolder,
"report.txt")
26 codeStorage = dataCtrl.csVerifyDownloaded(0,
29 ic.IConnectDebug2.ccSrcLoaded)
30 print(f
"\tCreated report file: {filePath}")
33 """ set BP here and inspect file manually or modify `filePath` """
36if __name__ ==
"__main__":
37 test_csVerifyDownloaded()