Issue with ESP32-S3-N16R8 Board Resetting Continuously

Hi.

I have created a simple test project using the Arduino platform on VSCode for the ESP32-S3-N16R8 Board-USBC module.
After compiling and uploading the project to the board, the ESP32-S3 is unable to start properly and keeps resetting continuously.
But, I tested the same ESP32-S3 module with Arduino IDE 2.3.3, and it worked well.”
Maybe something wrong with PIO configuration and tools?
I would appreciate your advice on how to resolve this issue.

  1. Below is the serial output:
    ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
    rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
    SPIWP:0xee
    mode:DIO, clock div:1
    load:0x3fce3808,len:0x4bc
    load:0x403c9700,len:0xbd8
    load:0x403cc700,len:0x2a0c
    entry 0x403c98d0

    ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
    rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
    Saved PC:0x403cdb0a
    SPIWP:0xee
    mode:DIO, clock div:1
    load:0x3fce3808,len:0x4bc
    load:0x403c9700,len:0xbd8
    load:0x403cc700,len:0x2a0c
    entry 0x403c98d0

  2. Here is the main.cpp file:
    #include <Arduino.h>

    void setup() {
    Serial.begin(115200);
    delay(2000);
    Serial.println(“Setup()”);
    }

    void loop() {
    Serial.println(“loop”);
    }

  3. And the platformio.ini configuration:
    [env:esp32-s3-devkitc-1-n16r8v]
    platform = espressif32
    board = esp32-s3-devkitc-1-n16r8v
    framework = arduino
    build_flags =
    -DCORE_DEBUG_LEVEL=1
    -Wl,-Map,output.map

  4. Attached are the following files:
    (a) sdkconfig from C:\Users\aaa.platformio\packages\framework-arduinoespressif32\tools\sdk\esp32s3
    (b) esp32-s3-devkitc-1-n16r8v.json from C:\Users\ACEN.platformio\platforms\espressif32\boards
    I cannot attach the files. If necessary to find the cause of the problem, I will upload the content.”

Thank you for your assistance.

Best regards,

sjkim

Hi @dallim30 !

This is a custom board manifest and is not included in PlatformIO.

Try one of the following platformio.ini files:

If your board has a WROOM-1 or WROOM-1U module:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino

board_build.arduino.memory_type = qio_opi
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_build.extra_flags = 
  -DBOARD_HAS_PSRAM

If your board has a WROOM-2 module:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino

board_build.arduino.memory_type = opi_opi
board_build.flash_mode = opi
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_build.extra_flags = 
  -DBOARD_HAS_PSRAM

See GitHub - sivar2311/ESP32-S3-PlatformIO-Flash-and-PSRAM-configurations: ESP32-S3 PlatformIO Flash and PSRAM configurations

Your answer really helped me a lot, thank you.