I am using a XIAO nRF52840 for the first time. I can upload the blink example and the LED blinks. Seems like success. However, the board designation at the top of the IDE goes from bold to not bold, and at the bottom of the IDE it says:
SEED XIAO nRF52840 on COM19 (not connected)
In Device Manager, COM19 disappears. And when I immediately try uploading the sketch again, I get this error message:
Sketch uses 21060 bytes (2%) of program storage space. Maximum is 811008 bytes.
Global variables use 3096 bytes (1%) of dynamic memory, leaving 234472 bytes for local variables. Maximum is 237568 bytes.
Waiting for upload port...
No upload port found, using COM19 as fallback
"C:\Users\kente\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.10/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe" --verbose dfu serial -pkg "C:\Users\kente\AppData\Local\arduino\sketches\7EB0D2D3F4C0649B5BA4A893DE7DA176/Blink.ino.zip" -p COM19 -b 115200 --singlebank
Upgrading target on COM19 with DFU package C:\Users\kente\AppData\Local\arduino\sketches\7EB0D2D3F4C0649B5BA4A893DE7DA176\Blink.ino.zip. Flow control is disabled, Single bank, Touch disabled
Failed to upgrade target. Error is: Serial port could not be opened on COM19. Reason: could not open port 'COM19': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
Traceback (most recent call last):
File "dfu\dfu_transport_serial.py", line 113, in open
File "serial\serialwin32.py", line 33, in __init__
File "serial\serialutil.py", line 244, in __init__
File "serial\serialwin32.py", line 64, in open
serial.serialutil.SerialException: could not open port 'COM19': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "__main__.py", line 296, in serial
File "dfu\dfu.py", line 235, in dfu_send_images
File "dfu\dfu.py", line 157, in _dfu_send_image
File "dfu\dfu_transport_serial.py", line 115, in open
nordicsemi.exceptions.NordicSemiException: Serial port could not be opened on COM19. Reason: could not open port 'COM19': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
Any help is greatly appreciated.


