-
Notifications
You must be signed in to change notification settings - Fork 16
Closed as not planned
Labels
Description
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
Here is my PlatformIO configuration :
[env:seeed_xiao_nrf52840_sense]
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
board = seeed-xiao-afruitnrf52-nrf52840-sense
framework = arduino
build_flags =
-w
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT=1 ; Using Zadig to reinstall Driver
-DCORE_DEBUG_LEVEL=1
And a very simple code :
#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 ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done