41 Commits

Author SHA1 Message Date
Gerhard de Clercq
68a45490fc [embassy-usb-dfu] support ed25519 verification
This commit adds the ability to verify that USB DFU updates are correctly signed using ed25519.
This required adding support to embassy-boot for reading from the DFU partition.
2025-05-23 12:40:19 +02:00
Matt Johnston
5e49985ed6 embassy-sync: bump to 0.7.0 2025-05-22 13:29:55 +08:00
Ulf Lilleengen
f915903f0e
Merge pull request #4188 from Gerharddc/dfu-msos
[embassy-usb-dfu] support function level WinUSB GUIDs
2025-05-19 15:30:22 +02:00
Yuri Astrakhan
ef0f29f0ed Update defmt dependencies 2025-05-18 20:52:09 +02:00
Gerhard de Clercq
d4d10bad0b [embassy-usb-dfu] accept closure to customise DFU function
This provides a more generic interface for users to customise the DFU function instead of restricting customisation to DFU headers.
2025-05-14 09:52:46 +02:00
Gerhard de Clercq
46e25cbc5f [embassy-usb-dfu] correct comment about composite devices 2025-05-13 15:13:46 +02:00
Gerhard de Clercq
3c73b49790 [embassy-usb-dfu] support function level WinUSB GUIDs
This commit makes it possible to provide function level msos GUIDs to usb_dfu. This helps to ensure that composite DFU devices automatically get assigned the WinUSB driver on Windows.
2025-05-12 15:55:11 +02:00
Matthew Tran
5c0a63a0dd embassy-usb-dfu: Reset immediately if WILL_DETACH is set
This is necessary to support the windows WinUSB driver which is not
capable of generating the USB reset.
2025-05-08 00:12:00 -05:00
Matthew Tran
d35df5cfba embassy-usb-dfu: Change return of reset to ()
Also adds &self to the Reset trait, which makes it easier to implement
cleanup/delays before actually resetting.
2025-05-08 00:09:21 -05:00
Gerhard de Clercq
3c9661cebc [embassy-usb-dfu] Add generic DFU marking interface
This commit adds an interface that allows users to customise how the bootloader is informed that DFU mode is needed on the next boot.
2025-04-22 12:20:33 +02:00
Krzysztof Królczyk
e173db1151
doc: add docu strings for dfu
Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
2025-02-11 10:08:47 +01:00
Ulf Lilleengen
ed63f80637 chore: bump embassy-sync version
Prepare version 0.6.2 for release
2025-01-15 16:12:36 +01:00
Dario Nieuwenhuis
05df319a82 Release embassy-usb v0.4.0, embassy-usb-logger v0.4.0. 2025-01-15 00:59:15 +01:00
Dániel Buga
3c1e862f61
Prepare embassy-boot 0.4 2025-01-05 21:28:44 +01:00
Dániel Buga
9a238e6ad8
Prepare new embassy-time-*driver, embassy-executor, embassy-time 2024-12-22 20:27:15 +01:00
Gerhard de Clercq
0b9cdd86ab embassy-usb-dfu: use correct function descriptors
This should allow things to work properly even when IADs are used.
2024-12-10 09:21:37 +01:00
Gerhard de Clercq
ed1f44e58b embassy-dfu-usb: Improve debuggability
This commit adds logging to embassy-dfu-usb which helps with debugging issues such as https://github.com/embassy-rs/embassy/issues/3536. It also cleans up a few repeated code blocks and avoid re-initialising the local buffer for every iteration.
2024-12-02 11:04:17 +01:00
Dániel Buga
c9abff53d7
Bump sync version (#3562)
* Bump sync version

* Use old embassy-sync in rp bluetooth example

* Downgrade update to minor
2024-11-22 21:16:11 +01:00
Ulf Lilleengen
1588fbc256 Prepare to release embassy-boot 2024-08-05 08:56:29 +02:00
Ulf Lilleengen
61bda59d83 Prepare to release embassy-usb 2024-08-05 08:56:29 +02:00
Ulf Lilleengen
44282b18fa Prepare embassy-time release 2024-08-05 08:56:29 +02:00
Tarun Singh
a716a3f006 Reduced define for 'unreachable!' to a single macro rule 2024-07-17 17:05:52 -04:00
Dario Nieuwenhuis
6a4ac5bd60 Add collapse_debuginfo to fmt.rs macros.
This makes location info in defmt logs point to the code calling the macro,
instead of always to fmt.rs as before. Fix works with nightlies
starting with today's, and stable 1.81+.
2024-06-17 01:38:57 +02:00
Ulf Lilleengen
30918c355b prepare for embassy-time 0.3.1 release 2024-06-04 09:02:41 +02:00
Dario Nieuwenhuis
999a2ad829 Fix all check-cfg errors in the entire repo.
the main ci.sh now passes if running with nightly.
2024-05-31 21:54:42 +02:00
Ulf Lilleengen
cf0d227cca Prepare for embassy-sync 0.6.0 release 2024-05-29 12:09:55 +02:00
James Munns
0d0d8e14e2 Update dependent versions 2024-04-23 19:48:16 +02:00
Dario Nieuwenhuis
3d842dac85 fmt: disable "unused" warnings. 2024-03-20 14:53:19 +01:00
Dario Nieuwenhuis
adb024bdbe usb-dfu: add docs metadata. 2024-01-26 14:23:51 +01:00
Dario Nieuwenhuis
a36c8eb843 boot: bump crates to 0.2 2024-01-12 00:53:46 +01:00
Dario Nieuwenhuis
6a1c415a4c Complete cargo.tomls more. 2024-01-12 00:32:47 +01:00
Dario Nieuwenhuis
22197320ff bump embassy-time 0.3, embassy-executor 0.5, embassy-net 0.4. 2024-01-11 23:01:24 +01:00
Dario Nieuwenhuis
e0775fbc8a Flatten embassy-boot dir tree 2024-01-11 18:55:59 +01:00
Dario Nieuwenhuis
b452a6bcf6 Centralize license and MSRV boilerplate into the repo readme. 2024-01-11 18:18:35 +01:00
Ulf Lilleengen
9ddf8b08e4 docs: document usb-logger and usb-dfu 2023-12-19 16:33:05 +01:00
Kaitlyn Kenwell
33e8943e5b Rename bootloader feature to dfu 2023-12-14 14:16:58 -05:00
Kaitlyn Kenwell
9f9f6e75bb Abstract chip reset logic, add Reset impls for cortex-m and esp32c3 2023-12-14 13:29:26 -05:00
Kaitlyn Kenwell
ef692c5141 SCB::sys_reset has a DSB internally, no need to replicate 2023-12-14 10:06:36 -05:00
Kaitlyn Kenwell
e27e00f628 Address reviews 2023-12-14 09:36:22 -05:00
Kaitlyn Kenwell
c2942f2727 fmt 2023-12-13 14:53:49 -05:00
Kaitlyn Kenwell
976a7ae22a Add embassy-usb-dfu 2023-12-13 14:40:49 -05:00