I’m having issues getting USB and serial to work correctly on an Adafruit Feather-S2 using PlatformIO and ESP-IDF framework. With Arduino IDE, and with the Arduino framework on PlatformIO, I can upload a sketch and monitor serial output without issue. However with ESP-IDF on PlatformIO the serial port
/dev/ttyACM0 disappears after uploading.
To upload the first time, I have to hold boot + reset after which the serial port appears and I can upload. The programmer complains that it cannot autoreset because I manually put it in boot mode which is fair enough. However, when I restart the chip the serial port never reappears and to re-upload I have to hold the buttons again. Is there something I need to add to
platformio.ini to enable USB serial to work properly?
The sketch is just the hello world ESP-IDF example. I’m running PIO core 6.1.4, Espressif 32 5.1.1, VSCodium 1.70.2 on Manjaro Linux.
Any suggestions welcome!