Closed chegewara closed 2 years ago
Your flash mode for OPI flash is not (wrong?) set.
For OPI Flash, Use Default Flash Boot Mode
So writing to flash is not working correctly. Typical issue when flash mode is false.
The problem is not with flash, OPI type etc.
It is Stack canary watchpoint triggered (usbd)
which requires to be increased.
Other than that example works fine with both OPI and QIO mode, depending on flash supported.
@chegewara - Could you please describe better how to reproduce the issue? I'm using Win11 and I get no error so far.
I have no idea how to describe it better. I am using vanilla example, with just delay() in loop to avoid WDT. The only difference between my test and yours test is the fact i am using Ubuntu 20.04 and disk's benchmark test.
Example screen:
The vanilla example sketch creates a Mass Storage Drive with just 6KB available space. In Win11, this drive is labled ESP32S2 MSC
and it has a single file README.TXT
. I'm (over)writing a new file of another 2KB to the drive several times and I get no error.
@chegewara - if possible, please turn on Debug messages and post here this output when the issue occurs.
Sorry, ive been sick and i had no time to confirm it, but it is still not solved to me. I am not using arduino examples, so its not important to me to fix it, but if you dont care, well i dont care either.
Board
esp32 s3 devkit
Device Description
devkit
Hardware Configuration
-
Version
v2.0.4
IDE Name
arduino IDE
Operating System
linux
Flash frequency
40
PSRAM enabled
no
Upload speed
115200
Description
When i am trying to perform benchmark on firmware MSC disk app crash (stack canary). It happen only on write benchmark, read benchmark is fine.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
PS all USB examples are crashing on S3 due to empty
loop()
(WDT crash); there should be addeddelay()
at least; it is not a problem on S2