aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot
Commit message (Collapse)AuthorAgeFilesLines
...
| * Split bootloader implementation into multiple filesRasmus Melchior Jacobsen2023-03-315-1171/+1194
| |
* | embassy-boot: add default nightly feature, makes it possible to compile with ↵sander2023-03-224-5/+19
|/ | | | the stable compiler
* Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy ↵Mehmet Ali Anil2023-03-071-3/+4
|\ | | | | | | into emb-storage-async-0p4
* \ Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy ↵Mehmet Ali Anil2023-03-071-1/+1
|\ \ | |/ |/| | | into emb-storage-async-0p4
* | Merge upstreamMehmet Ali Anil2023-03-071-35/+25
|\ \ | |/ |/|
* | Bump embedded-storage-async to 0.4Mehmet Ali Anil2023-03-065-6/+6
|/
* Support codesigning in the firmware updaterhuntc2023-01-122-15/+368
| | | | This commit provides a method to verify that firmware has been signed with a private key given its public key. The implementation uses ed25519-dalek as the signature verifier. An "ed25519" feature is required to enable the functionality. When disabled (the default), calling the firmware updater's verify method will return a failure.
* Merge #1139bors[bot]2023-01-041-5/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 1139: Wdt config changes r=lulf a=huntc Per commits: * By passing WDT config around we can control it more easily and promote sharing it between files. * The memory layout of the s140 crept into a number of memory files, which can cause confusion (well, it did for me!). * Obtaining the current WDT config is useful so that we do not have to duplicate configurations around the place. A constructor method has been introduced that attempts to return the current running WDT config from the WDT peripheral. The bootloader example has also been updated to show how the watchdog can be obtained and used. Co-authored-by: huntc <[email protected]>
| * Pass WDT config aroundhuntc2023-01-041-5/+1
| | | | | | | | By passing WDT config around we can control it more easily and promote sharing it between files.
* | Cleanupkalkyl2023-01-031-1/+1
| |
* | embassy-boot (rp): Add WatchdogFlashkalkyl2023-01-032-1/+52
|/
* feat: embassy-boot for rp2040Ulf Lilleengen2022-12-025-0/+420
| | | | | | | Add embassy-boot support for RP2040, with examples for the Raspberry Pi Pico. Co-authored-by: Mathias Koch <[email protected]>
* Bump defmt-rtt to 0.4Dario Nieuwenhuis2022-11-291-1/+1
|
* fix: bump embassy-boot versionUlf Lilleengen2022-11-251-1/+1
|
* fix: add required metadata for embassy-bootUlf Lilleengen2022-11-257-11/+60
|
* Move default initializer function to Default trait implementationMathias2022-11-012-37/+41
|
* Fix ascii table in BootLoader doc commentDaniel Bevenius2022-10-291-1/+1
| | | | Signed-off-by: Daniel Bevenius <[email protected]>
* all Cargo.toml: Add license to all crate Cargo.toml fileschrysn2022-10-073-0/+3
| | | | Closes: https://github.com/embassy-rs/embassy/issues/1002
* make prepare_update asyncMathias2022-09-261-2/+2
|
* Add get_state helpers to allow self-testing before calling mark_bootedMathias2022-09-261-13/+43
|
* Add blocking API to FirmwareUpdater, and allow for a split prepare/write apiMathias2022-09-261-7/+179
|
* Update Rust nightly.Dario Nieuwenhuis2022-09-223-3/+0
| | | | Removes feature(generic_associated_types)
* Take into account size of revert indexUlf Lilleengen2022-09-201-4/+17
| | | | | | | Fixes a bug in the partition assertions that ensures that the state page(s) have enough space for 2x active partition range. Add unit test to verify that panic is observed.
* Remove BootFlash borrowUlf Lilleengen2022-09-201-12/+12
| | | | | | | Compiler will infer a different lifetime for BootFlash than for the borrowed flash, which makes it require more type annotations than if it was just owning the type. Since it doesn't really matter if it owns or borrows in practical use, change it to own so that it simplifies usage.
* Fix a few clippy warningsUlf Lilleengen2022-09-021-25/+23
|
* Remove generic const expressions from embassy-bootUlf Lilleengen2022-09-024-259/+385
| | | | | | | | | * Remove the need for generic const expressions and use buffers provided in the flash config. * Extend embedded-storage traits to simplify generics. * Document all public APIs * Add toplevel README * Expose AlignedBuffer type for convenience. * Update examples
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-223-3/+3
|
* Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis2022-08-172-2/+2
|
* Add -boot docserver metadata.Dario Nieuwenhuis2022-08-153-0/+17
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-293-3/+3
|
* simplify `set_magic`Vincent Stakenburg2022-06-301-13/+4
|
* add log feature to embassy-boot-stm32Vincent Stakenburg2022-06-301-0/+6
|
* Remove unused importsUlf Lilleengen2022-06-291-3/+0
|
* Add build.rs to detect armv6Ulf Lilleengen2022-06-271-0/+11
|
* Move bootloader main to examplesUlf Lilleengen2022-06-2412-314/+6
| | | | | This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead.
* Merge pull request #822 from embassy-rs/remove-authorsDario Nieuwenhuis2022-06-183-9/+0
|\ | | | | Remove the authors field from Cargo.tomls
| * Remove the authors field from Cargo.tomlsDario Nieuwenhuis2022-06-183-9/+0
| | | | | | | | | | | | | | | | | | | | | | It currently contains whoever was first to write some code for the crate, even if many more people have contributed to it later. The field is "sort of" deprecated, it was made optional recently: https://rust-lang.github.io/rfcs/3052-optional-authors-field.html Due the the reasons listed there I believe removing it is better than setting it to generic fluff like "The Embassy contributors".
* | Merge pull request #821 from embassy-rs/defmt-traceDario Nieuwenhuis2022-06-181-0/+3
|\ \ | |/ |/| Add env DEFMT_LOG=trace to all examples.
| * Add env DEFMT_LOG=trace to all examples.Dario Nieuwenhuis2022-06-181-0/+3
| |
* | Update to 2021 edition. (#820)Dario Nieuwenhuis2022-06-182-2/+2
|/
* Run rustfmt.Dario Nieuwenhuis2022-06-125-59/+21
|
* boot/stm32: autodetect thumbv6, remove cargo feature.Dario Nieuwenhuis2022-05-313-2/+6
|
* Add F7 flash and bootloader supportMatous Hybl2022-05-061-1/+1
|
* Add support for F3 flashMatous Hybl2022-05-061-1/+1
|
* Fix linker script for nrf bootloader exampleUlf Lilleengen2022-04-282-2/+2
|
* Allow using separate page sizes for state and dfuUlf Lilleengen2022-04-284-77/+305
| | | | | | | * Less generics on bootloader. Keep PAGE_SIZE as a common multiple of DFU and ACTIVE page sizes. * Document restriction * Add unit tests for different page sizes
* Add bootloader to CIUlf Lilleengen2022-04-279-73/+40
|
* Add stm32 flash + bootloader supportUlf Lilleengen2022-04-2711-105/+634
| | | | | | | | * Add flash drivers for L0, L1, L4, WB and WL. Not tested for WB, but should be similar to WL. * Add embassy-boot-stm32 for bootloading on STM32. * Add flash examples and bootloader examples * Update stm32-data
* Support multiple flash instances in embassy-bootUlf Lilleengen2022-04-195-46/+203
| | | | | | | | * Add FlashProvider and FlashConfig traits to define flash characteristics * Use traits in bootloader to retrieve flash handles and for copying data between flash instances * Add convenience implementations for using a single flash instance.
* Avoid writing bootloader flash if not neededUlf Lilleengen2022-03-311-24/+36
|