I was able to get this sketch to work, then it quit
Red light on
First effort with SparkFun so I’m likely missing something simple.
Windows 11 computer
Error message:
Library Adafruit nRFCrypto has been declared precompiled:
Using precompiled library in C:\Users\jmwoo\AppData\Local\Arduino15\packages\SparkFun\hardware\nrf52\1.0.0\libraries\Adafruit_nRFCrypto\src\cortex-m4\fpv4-sp-d16-hard
Sketch uses 143416 bytes (17%) of program storage space. Maximum is 815104 bytes.
Global variables use 16536 bytes (6%) of dynamic memory, leaving 221032 bytes for local variables. Maximum is 237568 bytes.
Upgrading target on COM3 with DFU package C:\Users\jmwoo\AppData\Local\arduino\sketches\7D9C49DCFC925D5C04151A2A26428B95\BLE_Data_Pipe_9Jun25.ino.zip. Flow control is disabled, Single bank, Touch disabled
Failed to upgrade target. Error is: Serial port could not be opened on COM3. Reason: could not open port ‘COM3’: 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 ‘COM3’: 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 COM3. Reason: could not open port ‘COM3’: 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.
Thank you,
John Woodyard