pub fn flash_firmware(
ctx: &Ctx,
image: &str,
backup: &str,
commit: bool,
blocks: Range<u8>,
index: u16,
wait: u64,
p: &mut dyn Progress,
) -> Result<()>Expand description
Install an FPGA bitstream into the primary firmware bank.
Only the primary is written; the golden backup is left alone so the card retains an in-hardware fallback. A local dump of the current primary is required as well, so the previous image can be put back.
blocks limits the write to part of the bank, so a partially-programmed
image can be repaired without disturbing what is already correct.
image is a manifest name or a path (crate::firmware).