Skip to content
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

nrf52_upload: Remove unused code and DFU trigger protocol #34

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

robin-nitrokey
Copy link
Member

DFU Trigger is a mechanism for rebooting from firmware into bootloader. It is used if the device does not have one of the known bootloader VID/PID combinations. As the Nitrokey 3 bootloader is not part of the whitelist, it is currently executed for every firmware update. But the Nitrokey 3 already is in bootloader mode and does not support the DFU trigger protocol, so it just delays the firmware update by 5 seconds.

This PR removes the DFU trigger implementation as well as unused code that was still part of the vendored package.

@robin-nitrokey
Copy link
Member Author

@daringer Can you please also have a look at #33? I’d like to have that test case in place before merging anything related to nrf52_upload or spsdk.

This patch removes nrf52_upload code that is not used by us.  This also
means that we no longer need the intelhex dependency, and only need the
ecdsa dependency for our own code.
DFU Trigger is a mechanism for rebooting from firmware into bootloader
[0].  It is used if the device does not have one of the known bootloader
VID/PID combinations.  As the Nitrokey 3 bootloader is not part of the
whitelist, it is currently executed for every firmware update.  But the
Nitrokey 3 already is in bootloader mode and does not support the DFU
trigger protocol, so it just delays the firmware update by 5 seconds.

This patch removes the DFU trigger implementation.

[0] https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_dfu_trigger_usb.html
@robin-nitrokey robin-nitrokey merged commit 090fb68 into main Aug 5, 2024
18 checks passed
@robin-nitrokey robin-nitrokey deleted the nrf52-upload branch August 5, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants