Hello,
I’m new in this board development and I need help. I’ve M5Dial (uses M5stamp s3) and was playing around with it using Arduino IDE (2.2.1), but it was rather limiting, so I decided to try out Platformio via vscode extension. I’ve imported arduino project and at first I was just happy that project compiled and uploaded. But I realized that I have no serial output. I can connect to COM3, but there are no messages.
I can build code using Arduidno IDE, and it sends serial messages, can connect via arduino or vscode serial monitor (also using platformio), but that same code, just copy pasted to vscode, builds successfully and uploads, yet no serial output, neither on vscode, nor arduino.
On Arduino, I had to add this url to Additional Boards Manager Urls: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
Not sure if this is something that I need to do on platformio. Instructions are from m5stack docs: m5-docs
For test run, I used this most basic code in main.cpp:
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
Serial.println("Hello World");
delay(1000);
}
and my platformio.ini contents:
[env:m5stack-stamps3]
platform = espressif32
board = m5stack-stamps3
framework = arduino
monitor_speed = 115200
Compiles and uploads, but no serial output when done from platformio. If I use same code on arduino (just without including arduino), serial works and I can see “Hello World” being sent every second using platformio serial monitor.
I have tried adding following to platformio.ini env without any success:
monitor_dtr = 0
monitor_rts = 0
Any help would be really appreciated, thank you!