aboutsummaryrefslogtreecommitdiff
path: root/examples/boot
Commit message (Collapse)AuthorAgeFilesLines
...
| * Provides a means of obtaining the current WDT confighuntc2023-01-041-0/+18
| | | | | | | | Obtaining the current WDT config is important so that we do not have to duplication configuration around the place. A constructor method has been introduced that returns WDT config in accordance with how the register is presently configured. The bootloader example has also been updated to show the watchdog can be obtained and used.
| * Cleaned up some doc and memory layouthuntc2023-01-045-4/+8
| | | | | | | | The memory layout of the s140 crept into a number of memory files, which can cause confusion.
| * Pass WDT config aroundhuntc2023-01-041-1/+8
| | | | | | | | 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-033-3/+12
|/
* feat: embassy-boot for rp2040Ulf Lilleengen2022-12-0213-0/+350
| | | | | | | 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-2910-10/+10
|
* all Cargo.toml: Add license to all crate Cargo.toml fileschrysn2022-10-0710-0/+10
| | | | Closes: https://github.com/embassy-rs/embassy/issues/1002
* Remove flash lock/unlock public API from stm32 flash, and perform the ↵Mathias2022-09-308-8/+8
| | | | unlocking and locking automatically on erase and write operations
* Use firmware writer in stm32{f7, h7} example appUlf Lilleengen2022-09-262-17/+17
| | | | | The new FirmwareWriter is useful in particular for these architectures due to the large erase sector size.
* Update Rust nightly.Dario Nieuwenhuis2022-09-222-2/+0
| | | | Removes feature(generic_associated_types)
* Remove BootFlash borrowUlf Lilleengen2022-09-202-5/+4
| | | | | | | 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.
* Merge #939bors[bot]2022-09-047-7/+7
|\ | | | | | | | | | | | | | | 939: time: add more tick rates, use 1mhz as default. r=Dirbaio a=Dirbaio Co-authored-by: Dario Nieuwenhuis <[email protected]>
| * time: add more tick rates, use 1mhz as default.Dario Nieuwenhuis2022-09-027-7/+7
| |
* | Remove generic const expressions from embassy-bootUlf Lilleengen2022-09-0212-34/+46
|/ | | | | | | | | * 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-228-8/+8
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-1824-34/+42
|
* Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-1716-32/+41
|
* Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis2022-08-1710-10/+10
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-2926-52/+58
|
* Use correct chip family name for exampleUlf Lilleengen2022-07-051-1/+1
|
* Fix RAM origin copy paste from nrfUlf Lilleengen2022-06-297-7/+7
|
* Add build.rs to detect armv6Ulf Lilleengen2022-06-271-5/+0
|
* Move bootloader main to examplesUlf Lilleengen2022-06-2484-216/+621
| | | | | 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-188-8/+0
|\ | | | | Remove the authors field from Cargo.tomls
| * Remove the authors field from Cargo.tomlsDario Nieuwenhuis2022-06-188-8/+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-189-0/+27
|\ \ | |/ |/| Add env DEFMT_LOG=trace to all examples.
| * Add env DEFMT_LOG=trace to all examples.Dario Nieuwenhuis2022-06-189-0/+27
| |
* | Update to 2021 edition. (#820)Dario Nieuwenhuis2022-06-185-5/+5
|/
* Run rustfmt.Dario Nieuwenhuis2022-06-1216-85/+41
|
* fix build adding missing time-tick feature.Dario Nieuwenhuis2022-05-317-7/+7
|
* boot/stm32: autodetect thumbv6, remove cargo feature.Dario Nieuwenhuis2022-05-312-2/+2
|
* Async shared bus for SPI & I2C + rename embassy-traits (#769)Henrik Alsér2022-05-2616-16/+16
| | | | | | | | | | | | | | | | | | | * Rename embassy-traits to embassy-embedded-hal * Rename embassy-traits to embassy-embedded-hal * Add shared bus for SPI and I2C * rustfmt * EHA alpha 1 * Rename embedded-traits in examples * rustfmt * rustfmt Co-authored-by: Henrik Alsér <[email protected]>
* Add H7 flash and bootloader supportMatous Hybl2022-05-069-0/+210
|
* Add F7 flash and bootloader supportMatous Hybl2022-05-069-0/+210
|
* Add support for F3 flashMatous Hybl2022-05-067-0/+182
|
* Fix linker script for nrf bootloader exampleUlf Lilleengen2022-04-284-1/+24
|
* Allow using separate page sizes for state and dfuUlf Lilleengen2022-04-285-5/+5
| | | | | | | * 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-2716-33/+41
|
* Add stm32 flash + bootloader supportUlf Lilleengen2022-04-2735-21/+758
| | | | | | | | * 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-193-6/+4
| | | | | | | | * 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.
* Add embassy-bootUlf Lilleengen2022-02-097-0/+180
Embassy-boot is a simple bootloader that works together with an application to provide firmware update capabilities with a minimal risk. The bootloader consists of a platform-independent part, which implements the swap algorithm, and a platform-dependent part (currently only for nRF) that provides addition functionality such as watchdog timers softdevice support.