5import isystem.connect
as ic
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
16 partitionName =
"Boot1"
20 storageCtrl = ic.CStorageDeviceFactory.makeDevice(connMgr, ic.EStorageDevice_EMMCDevice, devName, partitionName)
22 storageCtrl.erase(ic.IConnectUMI.wProgDevice)
23 print(f
"Erasing entire partition with name {partitionName}...")
25 storageCtrl.erase(ic.IConnectUMI.wProgDevice,startAddress,int(eraseSize))
26 print(f
"Erasing {int(eraseSize)} bytes with offset {startAddress} of partition with name {partitionName}...")
28 ic.CStorageDeviceFactory.terminateDevice(connMgr, ic.EStorageDevice_EMMCDevice, devName)
31if __name__ ==
"__main__":