Seeed-Studio / wiki-documents

https://wiki.seeedstudio.com/Getting_Started Seeed Studio Wiki source code
https://wiki.seeedstudio.com/Getting_Started
GNU General Public License v3.0
119 stars 139 forks source link

NordicSemiException: Serial port could not be opened...solution found #1671

Open butchalline opened 1 month ago

butchalline commented 1 month ago

Following this page[ https://wiki.seeedstudio.com/XIAO-BLE-Sense-Bluetooth_Usage/#tech-support--product-discussion] which is titled "Bluetooth Usage (Seeed nRF52 Boards Library)"

Using Arduino IDE 2.3.2, XIAO nRF52840, Example sketch Files>Examples>Adafruit Bluefruit nRF52 libraries>peripheral> blehid_keyboar.ino

Trying to upload this sketch produces these errors:


_Library Adafruit nRFCrypto has been declared precompiled: Using precompiled library in c:\Users\occam\Documents\Arduino\libraries\Adafruit_nRFCrypto\src\cortex-m4\fpv4-sp-d16-hard Sketch uses 125524 bytes (15%) of program storage space. Maximum is 811008 bytes. Global variables use 14880 bytes (6%) of dynamic memory, leaving 222688 bytes for local variables. Maximum is 237568 bytes. Upgrading target on COM18 with DFU package C:\Users\occam\AppData\Local\Temp\arduino\sketches\9F5A3A7B965D41E83025B90A6720C1ED\blehid_keyboard.ino.zip. Flow control is disabled, Single bank, Touch disabled

Failed to upgrade target. Error is: Serial port could not be opened on COM18. Reason: could not open port 'COM18': 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 'COM18': 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 COM18. Reason: could not open port 'COM18': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)

Possible causes:

You should now see this: ....###### Activating new firmware Device programmed.

Dear Seeed support: Please review and update webpage to prevent more grey hair :-)

github-actions[bot] commented 1 month ago

👋 @butchalline

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.