fromBinBytes

fun fromBinBytes(binData: ByteArray, imageIndex: Int = 0): FirmwarePackage.McuBoot

Parse and validate a MCUboot firmware image.

Return

validated firmware package

Parameters

binData

raw bytes of the MCUboot image file

imageIndex

target image slot (default 0)

Throws

if the image header is invalid