Problem using ide with esp32 s3 board

Hi

I just ran the standard arduino blink sketch on an ESP32 dev module. but as I didnt have an LED handy

I used a piezo buzzer instead , it worked fine, beep, beep as expected . I then swapped the board to an

ESP32 S3 dev kit C-1 v1.1 , set the board as ESP32 S3 dev module changed the port and did upload

it said it found the board and started uploading. After the upload finished the arduino ide said this .....

Sketch uses 227477 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13296 bytes (4%) of dynamic memory, leaving 314384 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.3
Serial port COM9
Connecting....
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:37:f1:58
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00047fff...
Flash params set to 0x022f
Compressed 15008 bytes to 10328...
Writing at 0x00000000... (100 %)
Wrote 15008 bytes (10328 compressed) at 0x00000000 in 0.2 seconds (effective 480.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 782.9 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 836.5 kbit/s)...
Hash of data verified.
Compressed 227872 bytes to 126957...
Writing at 0x00010000... (12 %)
Writing at 0x0001cd1a... (25 %)
Writing at 0x00022864... (37 %)
Writing at 0x00027cf3... (50 %)
Writing at 0x0002d248... (62 %)
Writing at 0x0003422b... (75 %)
Writing at 0x0003dcde... (87 %)
Writing at 0x000432fa... (100 %)
Wrote 227872 bytes (126957 compressed) at 0x00010000 in 1.9 seconds (effective 948.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

So I assumed all OK but when I tried , it didnt bleep

I opened the serial monitor and found things like this which repeated over and over

ELF file SHA256: 0000000000000000

Rebooting...
�ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x18 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037723c
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3808,len:0x43c
load:0x403c9700,len:0xbec
load:0x403cc700,len:0x2a3c
SHA-256 comparison failed:
Calculated: 3611f330726ad4edf64f62982b0568332a5800bc59425cab90be5379db92c108
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403c98d8

assert failed: do_core_init startup.c:298 (flash_ret == ESP_OK)


Backtrace:0x40377632:0x3fceb1800x4037a3e5:0x3fceb1a0 0x4037f9a1:0x3fceb1c0 0x4200a362:0x3fceb2f0 0x40376f9d:0x3fceb320 0x403cd6ef:0x3fceb350 0x403cd9ae:0x3fceb380 0x403c992d:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED

Although it was already putting itself into boot mode when i started downloading I tried manually putting it into boot but that didnt help

no matter which example sketch I try . none run on the ESP32 S3 yet they run fine on the esp32 dev module

I have tried on IDEs 1.8.19 2.0.0 and 2.0.3 but all do the same
and in preferences I have
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Any ideas as I bought 3 of these S3 boards and they are sitting idle till I can get something loaded

Don

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

Where did you get an ESP32-S3 core? The standard ESP platform URL doesn't offer such a core. Remember, an ESP32-S3 isn't an ESP32 MCU, despite it's name. The ESP32-S3 has an Extensa LX7 processor, while the original ESP32 has an Extensa LX6 processor. They might be binary compatible but I didn't find any information about that.

Hi Pylon

I am already using the ESP32 S3 dev module

I have IDE 2.0.0 rc-9.4
in the ide I put this in preferences

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Don

I don't use release candidates of the IDE. On the IDE 1.8.19 I don't get the ESP32S3 entries when I use the same core index file as you use.

The error you get sounds like there is a hardware problem but that's quite wild guessing.

Hi @pylon ESP32-S3 support was added to the ESP32 boards platform last spring in the 2.0.3 release:

Maybe you are using an outdated version of the platform?

Thank you for the hint, I had an old index URL installed which stopped at version 1.0.6. You version number got me to remove that index link and let me install the current version 2.0.4.

You are welcome. This problem of people being stuck at 1.0.6 due to Espressif changing the package index URL and ceasing maintenance on the old one is unfortunately quite common.

I managed to find an answer to the problem with the S3 board continually rebooting.
In the Arduino IDE under the tools section there are several options you can change
such as CPU freq , Flash size, Flash mode etc
By default it set flash mode to QIO 80MHz
I changed it to OPI 80MHz and now all the example files I tried load and run fine

Don

1 Like

I encountered a similar error, but I found the solution.

My Environment:
ESP32-S3 DevKitC-1 V1.0 N32R8V ( 32MB Flash and 8MB PSRAM)
Arduino IDE V1.8.19 ESP32 V2.0.5

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021

Message error with Loop:

assert failed: do_core_init startup.c:298 (flash_ret == ESP_OK)
Backtrace:0x40377612:0x3fceb1800x4037a23d:0x3fceb1a0 0x4037f621:0x3fceb1c0 0x420072c2:0x3fceb2f0 0x40376f7d:0x3fceb320 0x403cd6ef:0x3fceb350 0x403cd9ae:0x3fceb380 0x403c992d:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED

Solution:
Arduino Board Manager: ESP32 S3 Dev Module
Configure Flash mode = DIO 80 MHz or OIP 80 MHz
QIO 80 MHz or QIO 120 MHz doesn't work on my board.

PSRAM must be OIP mode too.

1 Like

Hi, I have the same board. But I can't set the Flash Size to 32MB, there are only the options 4, 8 and 16 MB. The Arduino IDE is 2.0.3. Have you the same problem?
Thank you.
Livio

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.