EraseImageEntry

@Serializable
data class EraseImageEntry(val fileName: String, val sha256: String, val expectedFirstTargetAddress: Long? = null, val expectedFamilyId: Long? = null)(source)

Constructors

Link copied to clipboard
constructor(fileName: String, sha256: String, expectedFirstTargetAddress: Long? = null, expectedFamilyId: Long? = null)

Properties

Link copied to clipboard
@SerialName(value = "expectedFamilyId")
val expectedFamilyId: Long?

The UF2 family ID the image's block must declare (flag 0x2000 set, u32 at offset 28) — the bootloader-driven erase image's contract, checked against the bytes instead of an address, because that image's targetAddr is 0 by design. Null for every other image.

Link copied to clipboard
@SerialName(value = "expectedFirstTargetAddress")
val expectedFirstTargetAddress: Long?

The flash address the image's first block writes to, for images whose address carries a safety invariant (the SoftDevice-specific nRF erase sketches). Null otherwise.

Link copied to clipboard
@SerialName(value = "fileName")
val fileName: String
Link copied to clipboard
@SerialName(value = "sha256")
val sha256: String