Custom board shows Error and reset loop after "sucessfull" flashing

Knochi
Posts: 2
Joined: Mon Aug 28, 2023 9:10 am

Custom board shows Error and reset loop after "sucessfull" flashing

Postby Knochi » Mon Aug 28, 2023 9:39 am

So i build a board with an ESP32-S3-Wroom-2 module.

Boot strapping pins
GPIO0 - testpoint/button
GPIO46 - NC

Arduino IDE Setup
Arduino IDE 1.8.19
official espressif "ESP32 Arduino" 2.0.11
the only things i changed was CDC on boot and reduced speed to 115200
ESP32Flashing_230828.png
Arduino IDE board settings
ESP32Flashing_230828.png (14.89 KiB) Viewed 2940 times
Flashing

Code: Select all

esptool.py v4.5.1
Serial port COM6
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:3d:2b:ec
Uploading stub...
Running stub...
Stub running...
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 0x0004cfff...
Compressed 15088 bytes to 10374...
Writing at 0x00000000... (100 %)
Wrote 15088 bytes (10374 compressed) at 0x00000000 in 0.2 seconds (effective 490.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 499.4 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 671.6 kbit/s)...
Hash of data verified.
Compressed 249088 bytes to 138985...
Writing at 0x00010000... (11 %)
Writing at 0x0001d4e0... (22 %)
Writing at 0x00023dd3... (33 %)
Writing at 0x00029297... (44 %)
Writing at 0x0002e6df... (55 %)
Writing at 0x0003487c... (66 %)
Writing at 0x0003ecd4... (77 %)
Writing at 0x000446f2... (88 %)
Writing at 0x0004a135... (100 %)
Wrote 249088 bytes (138985 compressed) at 0x00010000 in 2.9 seconds (effective 695.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Serial Console
after resetting the board i can see this on COM6

Code: Select all

E (125) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x18 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403772e4
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4

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


Backtrace: 0x403776d6:0x3fceb180 0x4037a70d:0x3fceb1a0 0x4037fc79:0x3fceb1c0 0x420076ce:0x3fceb2f0 0x40377047:0x3fceb320 0x403cd823:0x3fceb350 0x403cdae2:0x3fceb380 0x403c9929:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED

ELF file SHA256: 2ea84cf6c4907e33

ESP_Sprite
Posts: 9725
Joined: Thu Nov 26, 2015 4:08 am

Re: Custom board shows Error and reset loop after "sucessfull" flashing

Postby ESP_Sprite » Tue Aug 29, 2023 12:36 am

Googling that 'assert failed' seems to indicate you selected a larger amount of flash than your board has. Can you check that?

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Custom board shows Error and reset loop after "sucessfull" flashing

Postby lbernstone » Tue Aug 29, 2023 4:39 pm

ESP32-S3-WROOM-2 should use OPI flash (and OPI PSRAM if 8MB).

Knochi
Posts: 2
Joined: Mon Aug 28, 2023 9:10 am

Re: Custom board shows Error and reset loop after "sucessfull" flashing

Postby Knochi » Wed Aug 30, 2023 1:15 pm

Module is marked with M0M32R8V which is the 32 MB (Octal SPI) version with 8MB (Octal SPI) PSRAM

I changed the settings accordingly and now it works! Thanks!
ESP32Flashing_230830.png
ESP32Flashing_230830.png (26.86 KiB) Viewed 2746 times

Who is online

Users browsing this forum: No registered users and 88 guests