Navigation Menu

Skip to content

Commit

Permalink
update the flash page write delay
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Oct 18, 2018
1 parent c3169c4 commit 7a327fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nordicsemi/dfu/dfu_transport_serial.py
Expand Up @@ -219,7 +219,10 @@ def progress_percentage(part, whole):
# After 8 frames (4096 Bytes), nrf5x will erase and write to flash. While erasing/writing to flash
# nrf5x's CPU is blocked. We better wait a few ms, just to be safe
if count%8 == 0:
time.sleep(0.010)
time.sleep(DfuTransportSerial.FLASH_PAGE_WRITE_TIME)

# Wait for last page to write
time.sleep(DfuTransportSerial.FLASH_PAGE_WRITE_TIME)

# Send data stop packet
frame = int32_to_bytes(DFU_STOP_DATA_PACKET)
Expand Down
2 changes: 1 addition & 1 deletion nordicsemi/version.py
Expand Up @@ -30,4 +30,4 @@

""" Version definition for nrfutil. """

NRFUTIL_VERSION = "0.5.3.post11"
NRFUTIL_VERSION = "0.5.3.post12"

0 comments on commit 7a327fd

Please sign in to comment.