When I upload my code from the Arduino IDE, the serial monitor in both Arduino IDE and PlatformIO works perfectly.
But when I upload my code from PlatformIO, the serial monitor in both Arduino IDE and PlatformIO starts to print out gibberish/garbage values.
Mind you that I have set both the Serial.begin() and the monitor_speed in the platformio.ini both to 9600, the same as it is in Arduino IDE.(I have tried other rates and sadly did not work).
#include <Arduino.h>
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.print("Hello\n");
delay(1000);
}
This is happening with an esp32 which I soldered to a custom board.
I have another esp32 board from espressif which works perfectly in both PlatformIO and Arduino IDE.
Is there a pre-setup for PlatformIO to communicate with a fresh esp32? or is my custom board bound to scrap or is just incompatible with PlatformIO?