Skip to content

I'm curious, where/when do the clocks get initialized? #1644

Answered by earlephilhower
LinusHeu asked this question in Q&A
Discussion options

You must be logged in to vote

The OTA does init the clocks. The __wrap* fcns wrap functions in the base SDK (i.e. instead of building a new SDK blob, the linker just will call the __wrap versions). This is because the SDK ones pull in a lot of extra code (floating point math, IIRC) which makes the OTA bootloader much larger than it needs to be.

If you change things in the ota dir, you need to rerun the make-ota.sh script to make the OTA blob. OTW, your changes won't ecer be used. You also need to make sure that the generated OTA blob still fits in the 12K allocated for it, of course.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@earlephilhower
Comment options

@LinusHeu
Comment options

Answer selected by LinusHeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants