ESP32-S3 Flash encryption + Update.SetupCrypt issue: Guru Meditation Error: Core 0 panic'ed (Cache disabled but cached memory region accessed). #11106
plystdr
started this conversation in
Question - Community Help
Replies: 1 comment
-
Here is the full efuse export from ESP32 chip:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Board
ESP32-S3 N8R2
Device Description
Custom board.
Hardware Configuration
Multiple sensors wired to various GPIOs
Version
v3.0.2
IDE Name
PlatformIO with pioarduino
Operating System
Windows 11
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
115200
Description
I decided to implement encrypted OTA mechanism by using Update.SetupCrypt(); function to my application. It works great and tested multiple times to ensure it does not cause any issues.
I am using a third party library to initiate OTA updates. The library works great with Update.SetupCrypt option is enabled.
I then enabled flash encryption and secure boot v2 on ESP32-S3 to confirm if it works properly with Update.SetupCrypt();. However as soon as firmware download begins the esp32 reboots.
I had to throw 2 esp32 chips until I figured what might be the issue.
Apparently, when flash encryption is enabled Update.SetupCrypt(); not working properly and throws the following error on serial monitor.
Not sure if this is related with the DIS_DOWNLOAD_ICACHE and DIS_DOWNLOAD_DCACHE efuses are set to (b = True R/- (0b1)
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
Beta Was this translation helpful? Give feedback.
All reactions