code: def page_erase(addr):
      
      if __verbose:
          print("Erasing page: 0x%x..." % (addr))
  
      # Send DNLOAD with first byte=0x41 and page address
      buf = struct.pack("<BI", 0x41, addr)
      __dev.ctrl_transfer(0x21, __DFU_DNLOAD, 0, __DFU_INTERFACE, buf, __TIMEOUT)
  
      # Execute last command
      if get_status() != __DFU_STATE_DFU_DOWNLOAD_BUSY:
          raise Exception("DFU: erase failed")
  
      # Check command state
      if get_status() != __DFU_STATE_DFU_DOWNLOAD_IDLE:
  
          raise Exception("DFU: erase failed")
docs: Erases a single page.