-
Notifications
You must be signed in to change notification settings - Fork 7.6k
SPI Flash Unmap Failure on 3.0.2 #9936
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
Comments
@me-no-dev yes brent works for adafruit, we dont know what it is and hope you have some ideas since the board used to work |
@brentru @ladyada is this one particular board or all such boards? OTA partition is not overwritten? Code that breaks is part of OTA Rollback support and is trying to get the OTA Data partition to read the state of the partition that is trying to boot. This is nothing special and has worked fine since was added. Can you try with earlier core version? We merged some IDF changes in 3.0.2 that were not in previous 3.0.x |
This is only on the Feather ESP32-S3 Reverse TFT.
I am unsure if the OTA partition is not overwritten. Could you suggest a method of verifying this?
Sure, I'll try with 3.0.0 and 3.0.1 and provide info from trying this in a follow-up comment. |
@me-no-dev I installed 3.0.1 and can confirm this does not happen, it blinks as expected. |
I'll try to replicate tomorrow somehow. Any pointers on using a regular S3 would be welcome. I also notice that the bootloader is still from 2.0.x (IDF 4.4). Not sure if this is connected, but a thing to look into. |
I can confirm the issue. It's not just that board, but any S3 with enabled QSPI PSRAM. No PSRAM or OPI PSRAM works fine. 3.0.1 works also as expected, so issue was recently introduced into IDF release/v5.1 branch. Will track this to be fixed before we release another version |
We triggered this bug by implementing this feature request. I have found that it's necessary to have all of the following conditions to trigger it:
Checking for rollback before initializing PSRAM also works, so that is probably one solution to try. Still unsure if this is not going to cause other problems with OTA. |
Bug has been found by the IDF team and fix has been proposed. |
Sure - where should I put these libraries? |
Depends how you use the core. If it's from Git, then it will be in |
@me-no-dev I re-tested the example sketch (Blink) with the same hardware and inspected the IDF output. It's functioning correctly and the PSRAM is initializing successfully, too:
|
Thanks @brentru! will merge the fix then :) |
I stumbled on this the other day. Glad it's fixed... any chance we can get a 3.0.3 out asap? |
3.0.3 will be out soon. we are looking in other issues too. |
I know - but 2 years is a long time to wait for no progress ;) I do appreciate the teams work, and I know the work on 3.x with such large IDF changes under the hood has been a |
I understand this might look trivial to you, but it's not. (the reboot issue, not what's this thread about). There are some changes in the USB api that we can try and see if change any behavior, but you need to understand that we do not say that the outcome will be what you expect. |
will be fixed when releasing 3.0.3 version. Closed by espressif/esp32-arduino-lib-builder#188 |
3.0.3 was released, closing this ticket, if needed you can reopen. |
Board
Adafruit ESP32-S3 Reverse TFT Feather
Device Description
Adafruit ESP32-S3 Reverse TFT Feather - 4MB Flash, 2MB PSRAM, STEMMA QT
Hardware Configuration
Nothing is connected to the board
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
macOS
Flash frequency
QIO 80MHZ
PSRAM enabled
yes
Upload speed
115200
Description
Adafruit ESP32-S3 Reverse TFT Feather (w/TinyUF2 (4MB partition scheme)) fails to load the Blink sketch. Instead of loading Blink, it appears as a BOOT drive. The debug logs
The core issue stems from
esp_mmu_unmap
andspi_flash_munmap
emitting failures:Sketch
Debug Message
Backtrace:
The text was updated successfully, but these errors were encountered: