Erasing

Erase allows you to erase all or parts of your DUT's flash.

erase_section_flash.py
 from lager import lager

 dut = lager.DUT()

 # Erase your device
 # 64k flash, start address 0x08000000
 dut.erase(address=0x08000000, length=65536)
Erase Section of DUT's Flash
~  lager debug erase 0x08000000 65536 --dut 1

Erase entire contents.

erase_entire_flash.py
 # Erase entire flash
 dut.erase()
Erase Entire DUT Flash
~  lager debug erase --dut 1