Skip to content
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

Allow much more time for xosc to start #4

Merged
merged 1 commit into from
May 25, 2021

Conversation

dhalbert
Copy link

@dhalbert dhalbert commented May 24, 2021

Certain board samples require much more time for their XOSCs to start up and become stable. This problem was noticed on several samples of QT Py RP2040.

This PR lengthens the startup time in xosc_init() by a factor of 64. 16 is known to be not enough. 32 worked, so 64 is an additional safety margin.

In the long run, there should probably be an API or compile-option change to fix this proposed to upstream.

Much discussion in raspberrypi#401.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 49c0c16 into adafruit:circuitpython May 25, 2021
@photon-delight
Copy link

Hi Dan and Scott,

Does this merge mean that the latest stable releases of circuit python have this 64X delay built in?

@tannewt
Copy link
Member

tannewt commented Jan 25, 2022

Yes, I believe so. I do think it is configurable so a board may not have it enabled.

@dhalbert dhalbert deleted the lengthen-xosc-startup branch January 25, 2022 20:17
@dhalbert
Copy link
Author

We are not using this fork right now. We are using https://github.com/raspberrypi/pico-sdk, which has raspberrypi#457, which does it per board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants