8.8.1.1.2.2.8. Flash

class Flash
isFlashSupported() bool

Determines if flash is supported for the current device.

if session.flash.isFlashSupported():
    # perform flash operations...
Returns:

true if flash is supported on the current device, false otherwise.

Return type:

bool

performOperation(operation) None

Performs the specified flash operation. A list of all available operations for the current device can be obtained by calling listSupportedOperations().

# Erases the flash (assuming the operation is supported and named "Erase")
session.flash.performOperation("Erase")
Parameters:

operation (str) -- The operation to be performed.

Return type:

None

listSupportedOperations() str

Queries the list of flash operations supported for the current device.

# Print the list of supported operations
print(session.flash.listSupportedOperations())
Return type:

str

multiLoadStart() None

Should be called to start a multi-load operation. The flash manager will only erase the flash on the first program load. Once the Flash Manger receives this call, users will be free to call loadProgram() and loadBinaryProgram() as many times as needed to write to the Flash.

session.flash.multiLoadStart()

# multiple program loads...

session.flash.multiLoadEnd()
Return type:

None

multiLoadEnd() None

Called to finish a multi-load operation. The flash manager will return to default mode (erasing flash based on user settings).

session.flash.multiLoadStart()

# multiple program loads...

session.flash.multiLoadEnd()
Return type:

None