Skip to content

Crash when calling function ESP.getFlashChipMode() with an ESP32-S3 #9748

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

Closed
1 task done
Jason2866 opened this issue Jun 2, 2024 · 0 comments · Fixed by #9758
Closed
1 task done

Crash when calling function ESP.getFlashChipMode() with an ESP32-S3 #9748

Jason2866 opened this issue Jun 2, 2024 · 0 comments · Fixed by #9758
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@Jason2866
Copy link
Collaborator

Board

every board with a S3

Device Description

plain dev board

Hardware Configuration

nothing connected

Version

v3.0.0

IDE Name

ArduinoIDE, Platdormio

Operating System

MacOS Ventura

Flash frequency

80 Mhz

PSRAM enabled

no

Upload speed

115200

Description

Just calling the function ESP.getFlashChipMode() leads to a crash.

The reason for the crash is the wrong definition in soc.h
https://github.com/espressif/esp32-arduino-libs/blob/7649dd7dd99882cf0ec1015b2c2db1d6c4d70f2d/esp32s3/include/soc/esp32s3/include/soc/soc.h#L37

correct would be

#define REG_SPI_BASE(i)         (((i)==2) ? (DR_REG_SPI2_BASE) : (DR_REG_SPI0_BASE - ((i) * 0x1000)))  // GPSPI2 and GPSPI3

Sketch

none

Debug Message

none

Other Steps to Reproduce

thelastoutpostworkshop/gpio_viewer@ed3a520

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant