Flash

Flash allows you to write to your DUT's internal or XIP external flash using either a hex or binary <https://en.wikipedia.org/wiki/Binary_file> image.

Hex Image

flash_hex_image.py
 from lager import lager

 dut = lager.DUT()

 # Flash Your Device Under Device
 dut.flash("path/to/my/image/my_image.hex")
Flash Hex Image
~  lager debug flash --hexfile my_image.hex --dut 1