Skip to main content

Module flash

Module flash 

Source
Expand description

Reading and writing the card’s flash: configuration, dumps, and firmware.

Functions§

dump_flash
Dump an entire 64KB flash block. Read-only.
dump_range
Dump an arbitrary flash range using linear addressing. Read-only.
flash_firmware
Install an FPGA bitstream into the primary firmware bank.
read_blocks
Read count consecutive 64KB blocks starting at first; stops between blocks when cancelled.
read_config
Read the card’s stored configuration out of flash as .rcvbp file bytes.
read_primary_bank
Read the whole primary firmware bank into memory.
restore_flash
Write a previously dumped block image back to the card, for recovery.
rewrite_block
Erase the parameter block, write image over it, then verify and repair.
save_config
Save what read_config returned as out, print the path, and warn when the file will not drive PWM chips or does not parse.
scan_flash
Read page 0 of each block and report what it looks like. Read-only.
write_config
Install a .rcvbp into the card’s parameter flash.