Reset/Halt

Before performing a flash operation on your DUT you often want to put the DUT into a halted reset state.

halt_dut.py
 from lager import lager

 dut = lager.DUT()

 # Halt your device
 dut.reset(halt=True)
Halt DUT
~  lager debug reset --halt --dut 1

You can also perform a reset and start operation by setting the halt flag to False.

reset_start_dut.py
 # Reset and start
 dut.reset()
Reset and Start DUT
~  lager debug reset --dut 1