Hi,
just got my board today, and having no experience with such projects I decided to follow the instructions. I’m stuck at blinking LED example: clicking Upload on this sketch (or a blank sketch) in Arduino IDE results in following errors:
Sketch uses 40080 bytes (4%) of program storage space. Maximum is 811008 bytes.
Global variables use 6964 bytes (2%) of dynamic memory, leaving 230604 bytes for local variables. Maximum is 237568 bytes.
Performing 1200-bps touch reset on serial port COM7
Waiting for upload port...
No upload port found, using address:"COM7" label:"COM7" protocol:"serial" protocol_label:"Serial Port (USB)" properties:{key:"pid" value:"0x0045"} properties:{key:"serialNumber" value:"4AB3A892676847FD"} properties:{key:"vid" value:"0x2886"} as fallback
"C:\Users\tybin\AppData\Local\Arduino15\packages\Seeeduino\hardware\mbed\1.0.0/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe" --verbose dfu serial -pkg "C:\Users\tybin\AppData\Local\Temp\arduino-sketch-19D390B8B67D895B7298D13DCC878327/Blink.ino.zip" -p COM7 -b 115200 --singlebank
Upgrading target on COM7 with DFU package C:\Users\tybin\AppData\Local\Temp\arduino-sketch-19D390B8B67D895B7298D13DCC878327\Blink.ino.zip. Flow control is disabled, Single bank, Touch disabled
Opened serial port COM7
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 40088
Sending DFU start packet
Sending DFU init packet
Sending firmware file
Failed to upgrade target. Error is: WriteFile failed (PermissionError(13, 'Urz�dzenie nie rozpoznaje polecenia.', None, 22))
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 206, in _dfu_send_image
File "dfu\dfu_transport_serial.py", line 213, in send_firmware
File "dfu\dfu_transport_serial.py", line 241, in send_packet
File "serial\serialwin32.py", line 317, in write
serial.serialutil.SerialException: WriteFile failed (PermissionError(13, 'Urz�dzenie nie rozpoznaje polecenia.', None, 22))
Last line is polish Windows error, it translates to “Device does not recognize the command”.
Cable is data-enabled, board resets on pressing “Reset” button (Windows redetects it with audible sound and a pop-up), I have tried both available boards (mbed and not-mbed) in all possible combinations (with version 2.6.1 of mbed). Installing version 2.8.1 of mbed variant gives:
Error: 13 INTERNAL: Cannot install platform: installing platform Seeeduino:[email protected]: searching package root dir: no unique root dir in archive (...path)
I’ve tried launching Arduino IDE as admin and whitelisted it in Windows Defender.
Arduino IDE seems to detect the board - COM7 is labeled with product name, “Board info” returns product name and 2 codes.
The problem doesn’t seem to be Windows-specific as it also fails on Ubuntu 22.04, with COM-related problems.
Is the board bricked? Or is it something with Windows USB stack? Does the board package version matter, and if so, how to get around that error?
EDIT: I’ve tried different cables, ports, computers, reinstalling Arduino IDE, all to no avail.