Need help: Add ESP32-S3-mini in Platform IO in VS Code

Many thanks @maxgerhardt for your guidance. It is much needed help for us.

  1. We changed the platformio.ini file as indicated by you.
  1. Now we are able to flash esp32-s3-mini. We are able to see the serial print messages.

  2. We have a problem here, the GPIO read write functions, interrupts aren’t functioning.
    [e.g. pinMode(LED1, OUTPUT); digitalRead(SWITCH), digitalWrite(LED1) ]

  3. If i program esp32-s3 with the same sample GPIO test code using “Espressif IDE” the switch scanning and LED1 ON/OFF driving works. But in PlatformIO, the program doesnt work.

  4. The GPIO output pins doesn’t change state with below code
    #define LED1 42
    pinMode(LED1, OUTPUT);

            void Loop() {
             digitalWrite(LED1, HIGH);
             delay(500);
             digitalWrite(LED1, LOW);
             delay(500); }
    
  5. The GPIO output pins doesn’t change state with below code
    #define LED1 42
    pinMode(LED1, OUTPUT);

            void Loop() {
             if(1 == digitalRead(SWITCH))
             digitalWrite(LED1, LOW);
             else
             digitalWrite(LED1, LOW); }
    
  6. Attaching interrupts to the above pins doesn’t work.

  7. A point to observe is all the above works in when programmed in Espressif IDE.

  8. Our entire application is based on Arduino frame work.

Kindly guide us in resolving the above issues. Your help is greatly appreciated.

Thanks,
Sarath