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
from lager import lager
dut = lager.DUT()
# Flash Your Device Under Device
dut.flash("path/to/my/image/my_image.hex")
~ lager debug flash --hexfile my_image.hex --dut 1