[ESP32-S3 N8R2] Infinitive rebootin (Core 1 panic'ed (LoadProhibited). Exception was unhandled)

Hello everybody,

I soldered a custom board on ESP32-S3 N8R2 and it perfectly works with Arduino 1.8 IDE
-but-
With Platformioit doesn’t work!

[Platformio.ini]

[env:esp32-s3-devkitc-1]
platform = https://github.com/platformio/platform-espressif32.git
framework = arduino
board = esp32-s3-devkitc-1
monitor_speed = 115200
monitor_port = COM3
upload_port = COM3

build_flags =
-DBOARD_HAS_PSRAM

lib_deps =
madhephaestus/ESP32Encoder@^0.10.1
olikraus/U8g2@^2.34.17
adafruit/Adafruit BMP085 Library@^1.2.2
arduino-libraries/Stepper@^1.1.3
**D:\Electronics\project> pio pkg update -g -p espressif32**
Platform Manager: **espressif32@6.2.0** is already up-to-date
Tool Manager: **framework-arduinoespressif32@3.20008.0** is already up-to-date
Tool Manager: **tool-esptoolpy@1.40501.0** is already up-to-date
Tool Manager: **tool-mkfatfs@2.0.1** is already up-to-date
Tool Manager: **tool-mklittlefs@1.203.210628** is already up-to-date
Tool Manager: **tool-mkspiffs@2.230.0** is already up-to-date
Tool Manager: **toolchain-riscv32-esp@8.4.0+2021r2-patch5** is already up-to-date
Tool Manager: **toolchain-xtensa-esp32s3@8.4.0+2021r2-patch5** is already up-to-date

What Arduino-ESP32 version do you have installed in the Arduino IDE? Tools->Board->Board Manager->esp32.

Have you matched the Arduino IDE Tools settings exactly to PlatformIO? Especially in regards to the board, flash size, possible PSRAM (type). Also, all library versions should be exactly equal.

Arduino-ESP32 - 2.0.8 (the same version is added to support in espressif32@6.2.0)

With settings, it going to be a nightmare because I have to compare

AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\boards.txt
with
esp32-s3-devkitc-1.json (from Platformio)

Is there any easier way?

I managed to launch my custom ESP32-S3 N8R2 board with following config

{
  "build": {
    "arduino":{
      "ldscript": "esp32s3_out.ld",
      "partitions": "default.csv",
	  "psram_type":"qspi",
	  "memory_type": "qio_qspi"
    },
    "core": "esp32",
    "extra_flags": [
      "-DARDUINO_ESP32S3_DEV",
      "-DARDUINO_USB_MODE=1",
      "-DARDUINO_RUNNING_CORE=1",
      "-DARDUINO_EVENT_RUNNING_CORE=1",
	  "-DBOARD_HAS_PSRAM"
	  
    ],
    "f_cpu": "240000000L",
    "f_flash": "80000000L",
    "flash_mode": "dio",
	"boot":"qio",
    "hwids": [
      [
        "0x303A",
        "0x1001"
      ]
    ],
    "mcu": "esp32s3",
    "variant": "esp32s3"
  },
  "connectivity": [
    "wifi"
  ],
  "debug": {
    "default_tool": "esp-builtin",
    "onboard_tools": [
      "esp-builtin"
    ],
    "openocd_target": "esp32s3.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "Espressif ESP32-S3-DevKitC-1-N8R2",
  "upload": {
    "flash_size": "4MB",
    "maximum_ram_size": 532480,
    "maximum_size": 1310720,
    "require_upload_port": true,
    "speed": 921600
  },
  "url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
  "vendor": "Espressif"
}

1 Like