-
Notifications
You must be signed in to change notification settings - Fork 2k
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
bootloaders/riotboot: don't change CPU/pin state #21097
base: master
Are you sure you want to change the base?
Conversation
c8ee0f6
to
0675669
Compare
RIOTBOOT_MINIMAL
is set
I have some concerns:
|
One the one hand I didn't want to give application developers ideas, but then again this is more descriptive when writing
I don't think there is a use case, but it makes sense from a consistency point of view when going with the descriptive naming.
Yes, for |
Maybe we could just provide some hooks to the user (empty by default) so they can do whatever they want if they have a special use case for that. |
0675669
to
987403c
Compare
987403c
to
e7205d3
Compare
RIOTBOOT_MINIMAL
is set
Looks good to me. Would you mind adding some documentation with a friendly warning that those two options are experimental for now and users should only use them if they really know what they are doing? |
Contribution description
A reoccurring issue is that some board sets way too much pin state in
board_init()
and this carries over toriotboot
where it is then frozen forever.But riotboot has no business to set any hw state, it just needs to compare two values in flash and jump to an address - we don't need to touch any hardware registers for that.
Testing procedure
An app that makes use of riotboot, e.g.
examples/suit_update
still boots as before.This was verified on
same54-xpro
.Issues/PRs references