-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
ESP32 Incorrect timing on the last few items when sending more than certain rmt_item32 at a time through RMT (IDFGH-3580) #5524
Comments
Thanks for reporting, we will look into. |
Hi, weixiongmei, Thank you for your detailed description, however I was unable to reproduce the problem with your code. Here is the code that I used:
I was able to get a stable signal of 360ns high - 840 ns low on my computer with a esp32wroverb. Could you please test with the above program? |
@wilhelmw201 Hi, I tried your code, the timing of the last few items still incorrect, is your external memory enabled? I upload the my sdkconfig file to see is it causing the problem or not. Thanks~~ |
Hi weixiongmei, thank you for your response. The problem is caused by the power management unit. For now, please disable PM, or use a power management lock to keep the PM from interfering with the APB clock when RMT is not complete. An example of using the power management lock:
then,
|
@wilhelmw201, Thank you so much, it's fixed~~ |
Problem Description
When I tried to send more than 20 items by using esp_err_trmt_write_items, the timing of the last few rmt_item32 being incorrect.
CODE
Environment
IDF: v4.2-dev-1905-g625bd5eb1
Toolchain version: esp-2020r2
Compiler version: 8.2.0
Screenshots Sending Less Than 20 Items
## Screenshots Sending Over 20 Items
The text was updated successfully, but these errors were encountered: