Skip to content

How to set up MK22FN512VLH12 clock for crystalless operation? #64815

Answered by DerekSnell
mondalaci asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mondalaci ,
The clock_init() used by the K22F device does not have an option to clock from the internal oscillator. And it appears it is not configured by devicetree. If you want to change the clock config for your board, you will need to modify this function.

And FYI, for the devices that do have the SIM_CHIPCTL_CLKOUTSEL bitfield, those bits control a CLKOUT pin. This is a mux that selects what clock will be driven externally on that pin. But it does not configure the internal SOC clocks. Since you said "The firmware builds without the clkout-source property", I would leave that property out of your devicetree.

Best regards

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DerekSnell
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants