import os
import tempfile
import isystem.connect as ic
winidea_id = ''
def test_csVerifyDownloaded():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
dataCtrl = ic.CDataController(connMgr)
print(f"Verifying downloaded items against selected download file...")
wksFolderPath = ic.CIDEController(connMgr).getPath(ic.CIDEController.WORKSPACE_DIR)
dlFilePath = os.path.join(wksFolderPath, "CORE0", "Debug", "example.elf")
with tempfile.TemporaryDirectory() as tmpFolder:
filePath = os.path.join(tmpFolder, "report.txt")
codeStorage = dataCtrl.csVerifyDownloaded(0,
dlFilePath,
filePath,
ic.IConnectDebug2.ccSrcLoaded)
print(f"\tCreated report file: {filePath}")
""" set BP here and inspect file manually or modify `filePath` """
if __name__ == "__main__":
test_csVerifyDownloaded()