-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
boards: nxp: frdm_k64f: use SW2 instead of SW3 for MCUboot #79715
boards: nxp: frdm_k64f: use SW2 instead of SW3 for MCUboot #79715
Conversation
Use SW2 instead of SW3 for entering MCUboot serial recovery/USB DFU mode. Holding SW3 during reset results in a NMI, causing the boot process to halt. Signed-off-by: Henrik Brix Andersen <[email protected]>
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.
oof, should there be a comment about it on that line? not a fan of cluttering devicetree files with comments but this may be worth it
A comment about what above which line? Suggestions welcome :) |
You are only changing one line :-) anyway, forget it I, I can't think of anything silly to add, would hate a comment that describes what signal doesn't do, imagine |
We could add a comment above the declaration of SW3 (a line I did not change here) noting that this switch is NMI capable? |
Yeah that may work, just something that one would read while porting to a new board and not make the same mistake. |
Thank you for catching this issue. It was assumed that SW0 alias is functional for all boards, as it used by the basic Zephyr button example. |
Use SW2 instead of SW3 for entering MCUboot serial recovery/USB DFU mode. Holding SW3 during reset results in a NMI, causing the boot process to halt.