Problem upload code to ESP-01S

A couple of things spring to mind…

  • ESP8266s often need resetting after serial programming to boot up properly
  • Is pin 2 the built-in LED on BOTH boards?
  • The Flash mode in your Arduino IDE screenshot is set to DOUT, whereas the platformio default is QIO… see if setting board_build.flash_mode = dout makes any difference…

I have what I believe to be ESP01S’s … AFAIK the only real difference was they come with 1Mb of flash instead of 512k, and improvements to antenna performance? If so, I’ve been programming them with the default settings just fine, and interchanging them with the older 512k ESP01s… only difference being my ESP01Ss have their build-in LED on pin 2, not pin 2.