Skip to content

Use the external crystal on SAMD21 again.#892

Merged
dhalbert merged 1 commit intoadafruit:masterfrom
tannewt:clock_w_crystal
Jun 2, 2018
Merged

Use the external crystal on SAMD21 again.#892
dhalbert merged 1 commit intoadafruit:masterfrom
tannewt:clock_w_crystal

Conversation

@tannewt
Copy link
Member

@tannewt tannewt commented Jun 2, 2018

Also, re-enable calibration storage for CircuitPlayground Express.
Tested with a 500hz PWMOut on Metro M0 with Saleae:

  • with crystal 500hz
  • with usb 500hz +- 0.1hz
  • without either 487hz += 0.1hz

SAMD51 is skipped due to DFLL errata and the fact it defaults to a
factory calibrated 48mhz that works fine for USB.

Fixes #648

Also, re-enable calibration storage for CircuitPlayground Express.
Tested with a 500hz PWMOut on Metro M0 with Saleae:
 * with crystal 500hz
 * with usb 500hz +- 0.1hz
 * without either 487hz += 0.1hz

SAMD51 is skipped due to DFLL errata and the fact it defaults to a
factory calibrated 48mhz that works fine for USB.

Fixes micropython#648
@tannewt tannewt added this to the 3.0 milestone Jun 2, 2018
@tannewt tannewt requested review from dhalbert and notro June 2, 2018 01:05
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Looks good but I will defer to @notro for another review as well.

Copy link

@notro notro left a comment

Choose a reason for hiding this comment

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

Looks good, but for me a Circuit Playground Express build didn't fit in the flash:

-44 bytes free in flash out of 253440 bytes ( 247.5 kb ).
4084 bytes free in ram for stack out of 32768 bytes ( 32.0 kb ).

Too little flash!!!

@dhalbert
Copy link
Collaborator

dhalbert commented Jun 2, 2018

@notro Thaks - We encountered the CPX overflow last night and are working on shrinking things. I reduced the size of the one of the frozen libraries by several hundred bytes.

@dhalbert dhalbert merged commit 9a6a5ea into adafruit:master Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants