After hours of unsuccessful tries, back to the basics:
I’m looking for examples for the ESP32-C3. The examples provided within the PIO explorer are only for ESP32, throwing the expected error A fatal error occurred: This chip is ESP32-C3 not ESP32. Wrong --chip argument? with the most basic example like esp-idf-blink while flashing. Trying out the examples from the original repo results in libraries not being found. This i figured out was due to missing config inside of sdkconfig.defaults which i found out can be edited with menuconfig. Still, if i get to compile these examples after much fiddling around, the ESP32-C3 immediately crashes and reboots. Uploading the exact same code with the eclipse IDE and the ESP-IDF installed works just fine. I still would like to transition to PIO.
The default board = .. setting may be a standard ESP32, but that’s nothing that’s unchangable. What’s your platformio.ini?
Using examples from the master branch of ESP-IDF will surely get you these kinds of errors, since the latest platform-espressif32 version gives you ESP-IDF 4.4.3, not the develop or some 5.x version. It’s thus only appropriate to use the examples from the same version, 4.4.3 at the moment.
I took your advice regarding the versions and edited my platformio.ini's platform variable to an older version with platform = email@example.com and now it works, thank you for your help as always! I did not test your latest answer as it works with the mentioned editing of the version.
I am using pio again after a long break and finding previous work is broken. For example, ESP32-C3 was rebooting because of SHA-256. After a search, I set platform as did jake-esd-protected1. Now the C3 is working again.