Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP_S3 could not boot on ESP32_S3_ZERO #1492

Closed
JohnMasen opened this issue Jun 1, 2024 · 1 comment · Fixed by nanoframework/nf-interpreter#2950
Closed

ESP_S3 could not boot on ESP32_S3_ZERO #1492

JohnMasen opened this issue Jun 1, 2024 · 1 comment · Fixed by nanoframework/nf-interpreter#2950

Comments

@JohnMasen
Copy link
Contributor

Target name(s)

ESP32_S3

Firmware version

1.9.1.161

Was working before? On which version?

N/A

Device capabilities

No response

Description

ESP32_S3_ZERO failed to boot after flashing ESP32_S3 firmware. it keeps rebooting with boot failure message "Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled."

After read the boot log, I found a possible reason: the boot loader reports 8MB spi flash, but there's actual 4MB flash on the board.

How to reproduce

Flash ESP32_S3_ZERO with following commands:

nanoff --update --serialport COM12 --target ESP32_S3 --masserase

command output:

.NET nanoFramework Firmware Flasher v2.5.77+18c31baab4
Copyright (C) 2019 .NET Foundation and nanoFramework project contributors


Reading details from chip...OK

Connected to:
ESP32-S3 (ESP32-S3 (QFN56) (revision v0.2))
Features WiFi, BLE, Embedded Flash 4MB (XMC), Embedded PSRAM 2MB (AP_3v3)
Flash size 4MB unknown from ST (manufacturer 0x32 device 0x16406)
PSRAM: undetermined
Crystal 40MHz
MAC 34:B7:DA:5A:E6:E0

Extracting ESP32_S3-1.9.1.161.zip...OK

Updating to 1.9.1.161

Erasing flash...OK
Flashing firmware...OK

Expected behaviour

No response

Screenshots

No response

Aditional information

boot info:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403772fa
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1380
load:0x403c9700,len:0x4
load:0x403c9704,len:0xba4
load:0x403cc700,len:0x2c5c
entry 0x403c98f0
I (31) boot: .NET nanoFramework 2nd stage bootloader ESP-IDF v5.1.3
I (31) boot: build May 31 2024 13:54:31
I (31) boot: chip revision: v0.2
I (35) boot.esp32s3: Boot SPI Speed : 80MHz
I (40) boot.esp32s3: SPI Mode       : DIO
I (45) boot.esp32s3: SPI Flash Size : 8MB
I (49) boot: Enabling RNG early entropy source...
I (55) boot: Partition Table:
I (58) boot: ## Label            Usage          Type ST Offset   Length
I (66) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (73) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (81) boot:  2 factory          factory app      00 00 00010000 001a0000
I (88) boot:  3 deploy           Unknown data     01 84 001b0000 001f0000
I (96) boot:  4 config           Unknown data     01 82 003c0000 00040000
I (103) boot: End of partition table
I (107) esp_image: segment 0: paddr=00010020 vaddr=3c0d0020 size=24f78h (151416) map
I (143) esp_image: segment 1: paddr=00034fa0 vaddr=3fc99e00 size=03ea8h ( 16040) load
I (147) esp_image: segment 2: paddr=00038e50 vaddr=40374000 size=071c8h ( 29128) load
I (155) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=ce54ch (845132) map
I (309) esp_image: segment 4: paddr=0010e574 vaddr=4037b1c8 size=0ebech ( 60396) load
I (323) esp_image: segment 5: paddr=0011d168 vaddr=600fe000 size=00064h (   100) load
I (332) boot: Loaded app from partition at offset 0x10000
I (332) boot: Disabling RNG early entropy source...
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x420cd53b  PS      : 0x00060130  A0      : 0x8202a955  A1      : 0x3fcbac90  
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x3fcbaf60  A5      : 0x3fca3d70  
A6      : 0x3fcaa374  A7      : 0xffffffff  A8      : 0x820cd4f0  A9      : 0x3fcbac70  
A10     : 0x00000000  A11     : 0x3fca3e10  A12     : 0x3fca3e10  A13     : 0x3fca805c  
A14     : 0x3c0d9758  A15     : 0xffffffff  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xffffffff  


Backtrace: 0x420cd538:0x3fcbac90 0x4202a952:0x3fcbacb0 0x4202ace7:0x3fcbacd0 0x4202ade1:0x3fcbacf0 0x4202b8f1:0x3fcbad10 0x4202b92f:0x3fcbad40 0x4202b4b7:0x3fcbad60 0x42029cad:0x3fcbad80




ELF file SHA256: 25185633d832a0d8

Rebooting...
@JohnMasen
Copy link
Contributor Author

This may helpful. I found another thread mentioned samed issue, turnes out the board maanger 2.0.15 will trigger this issue, 2.0.14 works fine.
IMG_2851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants