-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
A very weird Issue in the esp32s3 port caused by recent update #12325
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
Hi @nspsck , This sounds like it might be the same as this issue - thonny/thonny#2886 However, just in case, there are some recent esp32 memory allocation changes as described in https://github.com/orgs/micropython/discussions/12316 . This shouldn't cause more than a very short delay (much less than a second) between iterations, though. (Previously, the whole PSRAM could fill up before any garbage collection pass - meaning no garbage collection pauses would happen until it filled up and then one long garbage collection pause would happen. Now, running code like this will trigger frequent smaller and much shorter garbage collection pauses.) |
Hi projectgus,
Thank you for your response. I can confirm (well I hope...) that this is actually the case. As both using import machine
b = bytearray(1024 * 100)
machine.soft_reset()
Would there still be a possibility, that this is a b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100)
b = bytearray(1024 * 100) runs perfectly? The code is "at one go". |
I tested this using mpremote with the latest firmware and couldn't replicate the problem. It does look like Thonny is the culprit.
|
Ye, Thonny is most likely the cause for this problem. Time to bothering them! |
It is very hard to describe what the actual issue is... And I could not locate where the Issue lies.
Basically, if you run the following code 2 times in a row in Thonny
you will notice, that the first time it goes very fast and the second time it takes a really long time for it to complete. This behavior can be observed on a lot boards using N16R8 module. Like: LOLIN S3, LOLIN S3 Pro, WeAct Studio esp32s3 N16R8, Official ESP32-S3-DevKitM-1.
The same piece of code causes some boards (Lilygo T-Display S3 AMOLED) to hard reset automatically.
For the testing, I always used the native USB.
To build the firmware I used:
make BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT USER_C_MODULES=#A display driver written in C
Note: I tried simplely delete the line in this file, I also tried to set it to
0
.Neither approach had any effects on this Issue.
The text was updated successfully, but these errors were encountered: