def METHOD_NAME(self):
    # When USB-JTAG/Serial is used, the RTC watchdog is not reset
    # and can then reset the board during flashing. Disable it.
    if self.uses_usb_jtag_serial():
        self.write_reg(self.RTC_CNTL_WDTWPROTECT_REG, self.RTC_CNTL_WDT_WKEY)
        self.write_reg(self.RTC_CNTL_WDTCONFIG0_REG, 0)
        self.write_reg(self.RTC_CNTL_WDTWPROTECT_REG, 0)