Commit Graph

26 Commits

Author SHA1 Message Date
Dinu Blanovschi
3792b14161
fix: change duplicate reference to FirmwareUpdaterConfig::from_linkerfile_blocking in rustdoc 2024-09-27 10:40:24 +02:00
Ulf Lilleengen
ab0a227e4c Ensure bootloader state is parsed correctly 2024-09-19 09:16:19 +02:00
Ulf Lilleengen
b1897c58fa Add revert state in embassy-boot
The revert state signals that a firmware revert has taken place,
allowing the application to know if a firmware update attempt was
reverted.
2024-09-19 09:16:19 +02:00
kingofpayne
6d89f2729a
boot: flash-erase-zero (#3344)
Allow compatibility with devices whose flash erase set bytes to 0x00
instead of 0xFF, using a new flash-erase-zero feature.
See issue #3342.
2024-09-16 22:07:56 +02:00
Olivier Hériveaux
8519e54461 fix(boot): return signature error when no features
Always return signature error in verify_and_mark_updated when no
signature features are enabled.
2024-09-16 11:54:40 +02:00
Tarun Singh
a716a3f006 Reduced define for 'unreachable!' to a single macro rule 2024-07-17 17:05:52 -04:00
William Yager
a5c0d1b79f Change const asserts to core::assert to avoid invoking defmt::assert 2024-07-13 15:55:24 -04:00
Ulf Lilleengen
8f52ee469e make some embassy-boot asserts const 2024-07-02 12:37:36 +02:00
David Flemström
cbc67469d3 Route sources of panics to the crate's fmt macros 2024-06-28 22:52:03 +02: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
ZhangYong
9bc00e68fa update comments
use 4/5/6 as new firmware for better understanding
2024-03-24 18:25:04 +08:00
Dario Nieuwenhuis
3d842dac85 fmt: disable "unused" warnings. 2024-03-20 14:53:19 +01:00
Dario Nieuwenhuis
63d592c7b0
Merge pull request #2543 from badrbouslikhin/usb-dfu-erase-then-write
feat(boot): enhance firmware write functionality
2024-02-14 09:35:41 +01:00
Badr Bouslikhin
7dd974aa0d
refactor(boot): use sector instead of page for consistency 2024-02-12 23:28:04 +01:00
Badr Bouslikhin
56e6b6bee6
refactor(boot): move page erase index out of state 2024-02-12 23:24:21 +01:00
Badr Bouslikhin
333b2afe6d
test(boot): add various write firmware test configurations 2024-02-11 20:17:15 +01:00
Badr Bouslikhin
eb3bd39b06
feat(boot): enhance firmware write functionality 2024-02-11 20:16:17 +01:00
Badr Bouslikhin
8f7d80f9f7
Revert "feat(boot): introduce non-erase flash write method "
This reverts commit 2e8b7d2590.
2024-02-11 19:38:15 +01:00
Badr Bouslikhin
2a09996a78
Merge branch 'embassy-rs:main' into usb-dfu-erase-then-write 2024-02-11 19:35:42 +01:00
Han Cen
d77b6a60d2
Fix unaligned buffer in async updater 2024-02-10 20:45:44 +08:00
Badr Bouslikhin
2e8b7d2590
feat(boot): introduce non-erase flash write method 2024-02-07 16:40:24 +01:00
Badr Bouslikhin
e391b9b74c
docs(boot): ignore partial non-compilable example in rustdoc 2024-02-07 14:37:38 +01:00
Badr Bouslikhin
634c409c55
docs(boot): document from_linkerfile_blocking method 2024-02-07 13:06:48 +01:00
Badr Bouslikhin
af2b4df833
refactor(boot): change generics name to match existing convention 2024-02-07 11:32:13 +01:00
Badr Bouslikhin
c267cb9ab7
feat: enhance bootloader for multiple flash support 2024-02-06 16:25:45 +01:00
Dario Nieuwenhuis
e0775fbc8a Flatten embassy-boot dir tree 2024-01-11 18:55:59 +01:00