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

app: add USB Device Firmware Upgrade (DFU) support #28

Merged
merged 6 commits into from
Oct 19, 2024

Conversation

henrikbrixandersen
Copy link
Member

  • app: add support for generating an USB DFU image
  • app: add support for USB DFU mode via MCUboot
  • app: turn off DFU LED once booted
  • boards: add frdm_k64f board extension for testing DFU LED support
  • app: add support for triggering DFU mode via DFU button
  • README: document DFU mode

Add support for generating a USB DFU image using the dfu-suffix utility
from dfu-util when building the CANnectivity firmware application.

Signed-off-by: Henrik Brix Andersen <[email protected]>
Add support for USB Device Firmware Upgrade (DFU) mode via the MCUboot
bootloader.

Signed-off-by: Henrik Brix Andersen <[email protected]>
Turn off the mcuboot-led0 alias LED upon booting. This optional LED will be
turned on by MCUboot when entering USB DFU mode, but it is not turned off
again by MCUboot.

Signed-off-by: Henrik Brix Andersen <[email protected]>
Add an extension for the frdm_k64f board with the mcuboot-led0 alias
defined for testing purposes and enable it in MCUboot.

Signed-off-by: Henrik Brix Andersen <[email protected]>

config CANNECTIVITY_USB_DFU_PID
hex "USB DFU mode Product ID (PID)"
default 0x0001
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PID is for testing only. Waiting on pidcodes/pidcodes.github.com#981

Add support for triggering DFU mode via pressing and holding the optional
DFU button. Visual feedback will provided via the DFU LED, if present.

Signed-off-by: Henrik Brix Andersen <[email protected]>
Add instructions for how to use MCUboot for USB Device Firmware Upgrade
(DFU) mode.

Signed-off-by: Henrik Brix Andersen <[email protected]>
@henrikbrixandersen henrikbrixandersen merged commit 0295649 into CANnectivity:main Oct 19, 2024
4 checks passed
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.

1 participant