Serial monitor works when uploaded from Arduino IDE, but prints gibberish when uploaded from PlatformIO

Hm well it’s using the 2.0.2 core here too.

Try using platform = espressif32@3.5.0 in the platformio.ini (to use the 1.0.6 core). Does it work in PlatformIO then?