Hello,
I can’t get serial data on PlatformIO with Seeed XIAO nrF52840 Sense. The problems seems to comes from the way PlatformIO upload the firmware. It works on ArduinoIDE
#include <Arduino.h>
#include <Adafruit_TinyUSB.h>
void setup() {
Serial.begin(115200);
while (!Serial); // Attendre la connexion série
Serial.println("USB CDC actif");
}
void loop() {
Serial.println("Ping");
delay(1000);
}
Using latest version of Arduino IDE it works and serial communication display th Ping. Using Zadig I see a TinyUSB device. Perfect !
Using PlatformIO the code is correctly pushed, installed, and run BUT the serial communication is broken, VSCode do not see board/port and Zadig see 2 nRF device (Interface 0 and 2)
I assume PlatformIO is doing something Wrong but ChatGPT loop with wrong advices … The board and setup seems ok. Any ideas ?
@maxgerhardt unfortunatly I stuck one more step I have a code working with ESP32 to connect to 4+ BLE Devices. I try to move to that Seeed Xiao nrf52840 in order to handle 10+ connections.
So I have to move from BLEDevice.h to a compatible library. But working around ChatGPT it seems Adafruit Bluefruit nRF52 is not compatible with PlatformIO and it seems you made something 3 years ago
The issue with not linking TinyUSB correctly and not even testing a BluFruit52 example sketch tells me that Seeed didn’t do a good job of testing the platform here.
While I do have a fork that includes Xiao nRF52840 Sense board support, that is not also almost 2 years outdated since the last update: https://github.com/platformio/platform-nordicnrf52/pull/151. However, I made sure to actually test TinyUSB and Bluetooth sketches to compile properly.