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
@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@5154425 zephyrproject-rtos/hal_espressif@1980701 (main) zephyrproject-rtos/hal_espressif@51544259..19807014

All manifest checks OK

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
@sylvioalves sylvioalves force-pushed the bugfix/espressif-clock-source-cal branch 2 times, most recently from 4110ae0 to 0da50fc Compare December 9, 2025 12:13
@sylvioalves sylvioalves marked this pull request as ready for review December 9, 2025 12:13
@github-actions github-actions bot removed the DNM (manifest) This PR should not be merged (controlled by action-manifest) label Dec 9, 2025
@zephyrbot zephyrbot added area: Counter area: Tests Issues related to a particular existing or missing test labels Dec 9, 2025
@zephyrbot zephyrbot requested a review from nashif December 9, 2025 12:18
raffarost
raffarost previously approved these changes Dec 9, 2025
wmrsouza
wmrsouza previously approved these changes Dec 9, 2025
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 wmrsouza and raffarost via 42b635f December 9, 2025 20:34
@sylvioalves sylvioalves force-pushed the bugfix/espressif-clock-source-cal branch from 0da50fc to 42b635f Compare December 9, 2025 20:34
@sylvioalves
Copy link
Contributor Author

Rebased.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

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

Labels

area: Clock Control area: Counter area: Tests Issues related to a particular existing or missing test manifest manifest-hal_espressif platform: ESP32 Espressif ESP32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants