Hello Boris,
Appreciate your reply!
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
board_build.flash_size = 32MB
board_build.f_flash = 80000000L
board_build.flash_freq = 80m
board_build.flash_mode = opi
board_build.arduino.memory_type = opi_opi
board_build.partitions = partitions.csv
board_upload.maximum_ram_size = 8388608
build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT=1
-mfix-esp32-psram-cache-issue
upload_speed = 460800
monitor_speed = 9600
upload_port = /dev/cu.usbmodem14601
monitor_port = /dev/cu.usbmodem14601
partitions.csv
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
otadata, data, ota, 0xf000, 0x2000,
app0, app, ota_0, 0x20000, 0xE00000,
app1, app, ota_1, 0xE20000, 0xE00000,
spiffs, data, spiffs, 0x1C20000,0x200000,
coredump, data, coredump,0x1E20000,0x10000,
And the main.cpp
#include <Arduino.h>
void setup() {
Serial.begin(9600);
delay(1000);
Serial.println("ESP32-S3 Startup");
}
void loop() {
Serial.println("Loop running");
delay(1000);
}
The build is successful and with above configuration the esp32 memory and flash size is detected properly:
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.2% (used 19176 bytes from 8388608 bytes)
Flash: [ ] 1.8% (used 267085 bytes from 14680064 bytes)
Yet, upon successful upload, the device enters into the infinite loop of crash:
Connected!
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403cd9ce
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3808,len:0x41c
load:0x403c9700,len:0x9a8
load:0x403cc700,len:0x28d0
entry 0x403c98b8