-
Notifications
You must be signed in to change notification settings - Fork 194
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 delay on esp32h2
.
#1535
Fix delay on esp32h2
.
#1535
Conversation
Thanks! Code looks good and fixes the issue Now thinking about it I wonder why we are not using I thought we should also have issues on S2 but apparently, we use the CPU's timer on Xtensa (i.e. no issue there) - which makes we wonder if we should use systimer everywhere it's available (i.e. not on ESP32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! Do you mind enabling the get_time
test on H2 so we test it moving forward?
Maybe we do have them, this morning I tried locally the test suite on a 26 MHz C2 and the |
Done! |
Probably worth discussing, but this PR can be merged regardless I think so let's either open an issue or make a note to discuss it in our next meeting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks for the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks
Not sure what happened, but HIL on S3 failed to build the tests: https://github.com/esp-rs/esp-hal/actions/runs/8942444773/job/24565046328 Edit: CI succeeded doing the same: https://github.com/esp-rs/esp-hal/actions/runs/8942444770/job/24565051849 werid |
I've seen that happen before I think, not sure what causes it. Really weird. |
closes #1509
Submission Checklist 📝
CHANGELOG.md
in the proper section.Pull Request Details 📖
Description
Сoefficient for getting
16MHz
in Delay fromxtal_clock
(2.5
) wrong because it's related for40MHz
xtal
, whenesp32h2
's is32MHz
Testing
Tested delay time with DSLab LA, it's 500-501ms now.