97e73210c6
Update embassy-boot/boot/src/firmware_updater/blocking.rs
2023-12-21 18:17:38 +01:00
96acde1096
Update embassy-boot/boot/src/firmware_updater/blocking.rs
2023-12-21 18:14:51 +01:00
25aba4bb68
Update embassy-boot/boot/src/firmware_updater/blocking.rs
2023-12-21 17:59:35 +01:00
343d6b99d4
Update embassy-boot/boot/src/firmware_updater/blocking.rs
2023-12-21 17:43:27 +01:00
ab18ba6d90
erase once. write multiple
2023-12-21 17:38:54 +01:00
c7841a37fa
boot: update ed25519-dalek in dev-dependencies.
2023-12-19 22:26:50 +01:00
4567b87482
cargo fmt
2023-12-19 21:21:52 +01:00
12de90e13d
fix: update ed25519-dalek to new version
2023-12-19 21:20:30 +01:00
5ec2fbe3a2
Merge pull request #2284 from Redrield/feature/embassy-usb-dfu
...
Add embassy-usb-dfu crate, with related modifications to embassy-boot
2023-12-14 19:56:04 +00:00
c1438fe87b
fmt
2023-12-14 09:38:02 -05:00
e27e00f628
Address reviews
2023-12-14 09:36:22 -05:00
b17f16f0af
embassy-boot: Fix formatting for tables
...
Tables describing the a-b flashing were all garbled up in the
cargo doc output, so fix up the syntax.
2023-12-14 09:12:54 +02:00
b60b3f4eb8
Last fmt hopefully
2023-12-13 16:19:59 -05:00
702d2a1a19
Formatting fixes, add example using stm32wb55
2023-12-13 16:08:20 -05:00
2afec225e3
Merge branch 'main' into feature/embassy-usb-dfu
2023-12-13 14:42:14 -05:00
976a7ae22a
Add embassy-usb-dfu
2023-12-13 14:40:49 -05:00
6782fb1efa
embassy-boot: Add explanation to dfu vs active size assertion
2023-12-13 11:44:16 +02:00
c6989dfbca
Remove nightly and unstable-traits features in preparation for 1.75.
2023-11-29 17:26:33 +01:00
e519e00265
Update Rust nightly.
2023-11-01 04:56:56 +01:00
5e613d9abb
Sync all fmt.rs files.
2023-08-30 01:37:18 +02:00
a34331ae5f
Refactor firmware updater
...
* Allow manipulating state without accessing DFU partition.
* Provide aligned buffer when creating updater to reduce potential wrong parameters passed.
2023-08-06 19:46:53 +02:00
76659d9003
Prevent accidental revert when using firmware updater
...
This change prevents accidentally overwriting the previous firmware before
the new one has been marked as booted.
2023-06-19 22:39:00 +02:00
c22d2b5b5b
Remove unused use's
2023-05-30 14:15:52 +02:00
b703db4c09
Fix verify test
2023-05-30 14:07:35 +02:00
c6a984f506
Align tests
2023-05-30 13:55:49 +02:00
551f76c700
Remove legacy Partition type and use the one from embedded-hal
2023-05-30 13:44:12 +02:00
b23e40f722
Add TestFlash helper
2023-05-30 13:41:10 +02:00
1cd87f0028
Cleanup MemFlash
2023-05-30 13:40:04 +02:00
c5ec453ec1
Add bootloader helper for creating config from linkerfile symbols
2023-05-30 13:38:00 +02:00
5205b5b095
Split FirmwareUpdater into async and blocking types
2023-05-30 13:36:42 +02:00
94046f30ff
Remove the usage of the local Partition type in BootLoader
2023-05-29 22:00:44 +02:00
c844894a6e
Split the FirmwareUpdater into blocking and async
2023-05-29 21:29:13 +02:00
18c62aa5b4
Protect default implementations for FirmwareUpdater and BootLoader
...
It seems as if the arm compiler can does not care about whether the bootloader symbols are undefined if the default() function is never used. The x64 compiler does care however, so this change ensures that we can instantiate the types from tests.
2023-05-22 11:32:39 +02:00
9f7392474b
Update Rust nightly.
2023-05-19 17:12:39 +02:00
a73f9474a0
embassy-boot: ensure tests can run on the stable compiler
2023-04-20 10:56:59 +02:00
3002ee0dcf
embassy-boot: add nightly feature gate for async usage
2023-04-14 11:27:23 +02:00
f51cbebffd
embassy-boot: add nightly feature gates
2023-04-11 13:49:32 +02:00
c309797488
merge embassy/master
2023-04-11 13:48:34 +02:00
d3ce64254a
Let update_len be u32
2023-04-11 07:46:05 +02:00
d8c92c53d6
Merge remote-tracking branch 'upstream/master' into u32-partition
2023-04-11 07:36:23 +02:00
7e5ead78fe
Remove firmware_len
2023-04-05 08:28:46 +02:00
2deb2c624c
Let Partition range be u32 instead of usize
2023-04-05 08:28:31 +02:00
d8e2f82569
Let update_len be usize for now
2023-04-05 07:11:52 +02:00
043b3072c4
Merge remote-tracking branch 'upstream/master' into incremental-hash
2023-04-05 06:55:38 +02:00
e962fe794c
Add assertions about the aligned_buf % write sizes
2023-04-04 21:57:28 +02:00
78e6b4d261
Remove comment about equal erase size requirement
2023-04-04 21:43:18 +02:00
53efb02900
Allow different erase sizes for active and dfu
2023-04-04 21:30:49 +02:00
6c93309df4
Remove the Flash trait
2023-04-04 21:18:41 +02:00
25577e0eaf
Assert active and dfu have same erase size and copy in smaller chunks
...
The copy from active to dfu (and vice versa) is now done in smaller portions depending on aligned_buf, which now does not need to be erase_size big.
2023-04-04 21:09:30 +02:00
9242ad89d4
Remove magic buffer argument from prepare_boot
...
and use the aligned page buffer instead
2023-04-04 20:25:55 +02:00