-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
ESP32S3 - Custom RMT encoder causes panic during SPIFFS access (IDFGH-11954) #13032
Comments
The backtrace shows the For example, here, this object will be malloc from PSRAM because you set the Kconfig |
Thank you that has been the issue yes. Maybe the following snippet (from #if CONFIG_RMT_ISR_IRAM_SAFE || CONFIG_RMT_RECV_FUNC_IN_IRAM
#define RMT_MEM_ALLOC_CAPS (MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT)
#else
#define RMT_MEM_ALLOC_CAPS MALLOC_CAP_DEFAULT
#endif |
The encoder memory location should respect the RMT_MEM_ALLOC_CAPS, which is affected by some Kconfig options, like ISR_IRAM_SAFE Closes #13032
The encoder memory location should respect the RMT_MEM_ALLOC_CAPS, which is affected by some Kconfig options, like ISR_IRAM_SAFE Closes #13032
The encoder memory location should respect the RMT_MEM_ALLOC_CAPS, which is affected by some Kconfig options, like ISR_IRAM_SAFE Closes #13032
Answers checklist.
IDF version.
ESP-IDF v5.2-beta1 (&ESP-IDF v5.3-dev-1353-gb3f7e2c8a4)
Espressif SoC revision.
ESP32-S3 (QFN56) (revision v0.1)
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-S3-DevKitC-1
Power Supply used.
USB
What is the expected behavior?
I've written a custom RMT encoder which triggers a core panic during SPIFFS access and I don't have the slightest idea why. I've had my fair share of "flash access during IRAM interrupt panics" (see #12271) but this one completely escapes me.
Since the RMT encoder alone is about 500 lines and can't really be shortened, here is the entire project folder:
esp_idf_issue_13032.zip
Or here on GH: https://github.com/higaski/esp_idf_issue_13032
The entire example is basically an adapted version of the one I've already once linked in #12271.
What is the actual behavior?
For some reason there is a core panic exception once SPIFFS get accessed while RMT transmissions are running.
Steps to reproduce.
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: