From 720d8f21101fecd80d22ad26bd69f41c2799575b Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 9 Apr 2018 19:07:00 +0700 Subject: [PATCH] remove unneccessary double reset with DTR signal in nrfutil --- tools/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py b/tools/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py index bc8fe582..10dc02d8 100644 --- a/tools/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py +++ b/tools/nrfutil-0.5.2/nordicsemi/dfu/dfu_transport_serial.py @@ -107,14 +107,9 @@ class DfuTransportSerial(DfuTransport): time.sleep(DfuTransportSerial.SERIAL_PORT_OPEN_WAIT_TIME) # Toggle DTR to reset the board and enter DFU mode - # Note: This double reset may or may not be necessary depending on the - # CP21xx configuration, but we'll perform a second reset here to be - # sure self.serial_port.setDTR(False) time.sleep(0.05) self.serial_port.setDTR(True) - time.sleep(0.05) - self.serial_port.setDTR(False) # Delay to allow device to boot up time.sleep(DfuTransportSerial.NRF52_RESET_WAIT_TIME)