-
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
Fix APB_CLK_FREQ value for C6 (IDFGH-11886) #12972
Conversation
👋 Hello majkrzak, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Hi @majkrzak The APB clock frequency is true to be 40MHz, but just on esp32c6, the APB clock can not work as a function clock for the RMT. Instead, the supported clock sources are listed here It has a PLL clock source whose frequency is 80MHz, but it's not APB anymore. If you wants to write some code to work cross the esp chips, you can set the RMT clock source to |
Ok thank you. This mean ESP-idf documentation is wrong. It claims RMT is clocked with APB clock with default frequency of 80MHz. And we had wrongly used the |
This PR changes previously wrong value of
APB_CLK_FREQ
. It solves the issue with RMT LED driver where pulse with where incorrectly calculated using 40 MHz instead of 80 MHz clock base.