Skip to content

Conversation

@sylvioalves
Copy link
Contributor

When clock get_rate() is called, return calibrated frequency instead of nominal one. This improves accuracy specially when internal RC SLOW clock is used.

wmrsouza
wmrsouza previously approved these changes Dec 5, 2025
raffarost
raffarost previously approved these changes Dec 5, 2025
@sylvioalves sylvioalves marked this pull request as draft December 5, 2025 20:29
When clock get_rate() is called, return by default the calibrated
frequency instead of nominal one. This improves accuracy specially
when internal RC SLOW clock is used.

To guarantee that nominal values can be still be retrieved, add a
new type of clock subsys for such scenario.

west.yml is also updated to add fix into calibration sources.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
ESP32-H2 counter test works with default tolerance.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Update the test case to use the nominal clock_subsys and print
calibration deviation.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
@sylvioalves sylvioalves dismissed stale reviews from raffarost and wmrsouza via 4142de8 December 7, 2025 12:37
@sylvioalves sylvioalves force-pushed the bugfix/espressif-clock-source-cal branch from 38e2f80 to 4142de8 Compare December 7, 2025 12:37
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_espressif zephyrproject-rtos/hal_espressif@78f88d7 zephyrproject-rtos/hal_espressif#507 zephyrproject-rtos/hal_espressif#507/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hal_espressif DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Dec 7, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Clock Control DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_espressif platform: ESP32 Espressif ESP32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants