-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pico runtime skip init all #2466
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
Conversation
2dc9e37 to
eb77caf
Compare
eb77caf to
95acddd
Compare
|
|
||
| // --------------------------------------------------------------------------------------- | ||
| // Non-boot core eset of bootrom state, not needed if only using core 0 not used on RP2040 | ||
| // Non-boot core reset of bootrom state, not needed if only using core 0 not used on RP2040 |
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.
Should there be a comma after "core 0" here, to avoid this being misread as "core 0 not used on RP2040" ?
| #endif | ||
| #else |
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.
With so many #endifs and #elses all over the place, it's pretty hard to see how things line up. Maybe some judicious
#endif // PICO_RUNTIME_INIT_FUNC
style comments would make this code slightly easier to read?
|
|
||
| void runtime_run_initializers(void); | ||
| void runtime_run_per_core_initializers(void); | ||
| // PICO_CONFIG: PICO_RUNTIME_SKIP_INIT_ALL, Skip calling of `runtime_init_` functions during runtime init, type=bool, default=0, group=pico_runtime_init |
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.
So presumably this "overrides" e.g. PICO_RUNTIME_SKIP_INIT_POST_CLOCK_RESETS ?
|
P.S. I just did a Is that intentional? |
|
Why is this needed? |
Good question; it is a bit of a hack, and i was on the fence. you pushed me off - i will remove them by updating the linker script in the encrypted bootloader |
|
It wasn't a criticism. I was just wondering |
No description provided.