zephyr: USB DFU Example not working on nrf52840
Describe the bug
Following the guide here I am unable to update the device image using DFU. I have successfully flashed MCUBoot and the usb-dfu example. However, when I attempt to use dfu-util to update the image to a signed blinky example, I get the following output:
thomasokeeffe@Wirecat:~/Documents/school/drexel/research/CTS_sensor/zephyrproject$ dfu-util --alt 1 --download build
-blinky-signed/zephyr/zephyr.signed.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: No DFU capable USB device available
Please also mention any information which could help others to understand the problem you’re facing:
- Target platform: nrf52840dk_nrf52840
To Reproduce
Steps to reproduce the behavior:
Follow the guide until using dfu-util to update the image. See above error.
Expected behavior
I expected the device to be discovered by dfu-util and update the image successfully.
Environment (please complete the following information):
- OS: Ubuntu 22.04, kernel 6.5.0
- Toolchain: Zephy SDK 0.16.3
- Commit SHA: 6597a65b23ff87ee526644c407dbbff7d257743a
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 1
- Comments: 24
I applied the patch, then rebuilt. It works now after applying the patch. I had to do a pristine build.
Hi, I rebuilt MCUBoot with the
-p(--pristine) flag, and it is working now. I think the problem was that I applied the patch and rebuilt, but for some reason the build system couldn’t tell that the file had been changed.