First of all, there’s a bug in the latest BSP 1.1.4: Compilation error for BareMinimum example - #2 by kla and I am working with 1.1.1.
Well, as a matter of fact, I cannot even tell “work” with it because nothing works.
I have tried this example from the official page:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
}
Here’s what I did:
- Plug brand-new board the PC.
- Upload the above code.
- Upload done
Then, two problems occur:
- the device disappears from COM port list
- the example code actually does not work, that is, no LED on board lit up.
I have tried double pressing reset button to enter bootloader mode then the board shows up in COM port list again, but it disappears again after upload done and still no LED turned on.
Here’s verbose log for uploading:
Sketch uses 20236 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.
Performing 1200-bps touch reset on serial port COM18
Waiting for upload port...
No upload port found, using COM18 as fallback
"C:\Users\user\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.1/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe" --verbose dfu serial -pkg "C:\Users\user\AppData\Local\Temp\arduino\sketches\9FA811DFC375886A4A8BDE9B49B9C992/sketch_sep16a.ino.zip" -p COM18 -b 115200 --singlebank
Upgrading target on COM18 with DFU package C:\Users\user\AppData\Local\Temp\arduino\sketches\9FA811DFC375886A4A8BDE9B49B9C992\sketch_sep16a.ino.zip. Flow control is disabled, Single bank, Touch disabled
Opened serial port COM18
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 20244
Sending DFU start packet
Sending DFU init packet
Sending firmware file
########################################
Activating new firmware
DFU upgrade took 1.6852688789367676s
Device programmed.
A weird thing is, as you can see from the log, the uploader complains it cannot find upload port even though it actually upload with the port eventually:
Performing 1200-bps touch reset on serial port COM18
Waiting for upload port...
No upload port found, using COM18 as fallback
For instance, here, the uploader waits for COM18 which is right port recognized in my PC but it says no upload port found and fallbacks to COM18 which is the same port and upload success.
Anyway, I am frustrated.
I’ve bought two boards and repeated all the process twice but both of them do not work at all.
Any help would be appreciated. Thank you.