Upload working great in Arduino, "No device found on COM5" error in PlatformIO

Hello all, I’ve put my Seeeduino Xiao into Bootloader mode and it uploads just fine from the Arduino IDE. However, when I follow the PlatformIO intructions it auto-detects the correct port the gives error “No device found on COM5”, etc. Any solution to this?

image

You closed the Arduino IDE before trying on the PlatformIO ?

Yes Arduino IDE is closed before trying on PlatformIO in Visual Studio Code.

Edit: I discovered my problem is I am using the Seeed XIAO BLE Sense not the XIAO Samd21!

There is no support as of yet for the BLE sense on PlatfromIO.

There are a couple how tos floating around, you might try this one. I’m not sure if this is the exact one i used or not.

This uses the mbed framework version rather than the Adafruit framework, different underlying RTOS versions for one thing i do believe.

I was able to get the Adafruit framework running, after many hours of debugging, but had to hack at the framework and platfom files.

There appears to be some work going on to pull in support, not sure the status.

Awesome thanks I’ll try and get this workaround running!

I’ve been using both with the sense and the BLE versions, It’s all about the platfrom.ini file config.
As someone has pointed out, they work no -issues.
Debugging also works very well also in PlatIO .
HTH
GL :slight_smile:

Here’s one I use;

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:xiaoblesense]
platform = https://github.com/maxgerhardt/platform-nordicnrf52
board = xiaoblesense
framework = arduino
debug_tool = jlink

lib_extra_dirs = ~/Documents/Arduino/libraries
lib_deps = seeed-studio/Seeed Arduino LSM6DS3@^2.0.3
   arduino-libraries/ArduinoBLE@^1.3.2
   ;adafruit/Adafruit GFX Library
   adafruit/Adafruit BusIO
   Wire
   olikraus/U8g2@^2.34.4
   ;SPI
2 Likes

FYI, The PlatformIO github issue to add Xiao BLE:

1 Like

Thanks for the help! I am able to upload code from PlatformIO. However, have you had any issues with Serial.read()? The code from arduino is able to read serial inputs from a program on my computer, but with PlatformIO everything works if I put the serial commands in the monitor, but PlatfromIO code won’t read any data sent from the program on my computer.