aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application
Commit message (Collapse)AuthorAgeFilesLines
* rp/flash: change naming to `blocking_*`, `new_blocking`.Dario Nieuwenhuis2023-08-181-2/+2
| | | | | - Needed for consistency with other drivers. - Having two `new()` functions sometimes resulted in 'multiple applicable methods' errors.
* Refactor firmware updaterUlf Lilleengen2023-08-069-33/+34
| | | | | * Allow manipulating state without accessing DFU partition. * Provide aligned buffer when creating updater to reduce potential wrong parameters passed.
* rp: add async flashDerek Hageman2023-07-281-2/+2
| | | | | | Implement an async flash mode using the XIP background best effort read interface. Only reads are actually async, write and erase remain blocking.
* Release embassy-time v0.1.2Dario Nieuwenhuis2023-07-069-9/+9
|
* Update probe-rs-cli -> probe-rsDario Nieuwenhuis2023-06-2910-18/+18
|
* Add firmware updater examples to CIUlf Lilleengen2023-06-1918-26/+78
| | | | | | | | CI was not building the a.rs application due to the requirement of b.bin having been built first. Add a feature flag to examples so that CI can build them including a dummy application. Update a.rs application examples so that they compile again.
* FormattingRasmus Melchior Jacobsen2023-05-304-12/+7
|
* Align examplesRasmus Melchior Jacobsen2023-05-309-43/+59
|
* Let Flash<Async/Blocking> be a thingRasmus Melchior Jacobsen2023-05-258-8/+8
|
* Align with new bind_interruptRasmus Melchior Jacobsen2023-05-258-8/+8
|
* Bump versions preparing for -macros and -executor releaseUlf Lilleengen2023-04-279-9/+9
|
* fix stm32f7 example runner command for probe-rs-cliMalte Brieske2023-04-261-1/+1
|
* Switch from probe-run to probe-rs-cli.Dario Nieuwenhuis2023-04-269-17/+17
| | | | | - probe-run screwed up the last release 2 weeks ago and it's still not fixed (issue 391). Doesn't look well maintained. - Even when it's not broken, it lags behind probe-rs-cli in new chips support because it's slow in updating probe-rs.
* embassy-boot: update ci and examples to use the nightly flagsander2023-04-209-10/+10
|
* enable inline-asm feature for cortex-m in examplespennae2023-04-189-10/+10
| | | | | | inline assembly is supported since rust 1.59, we're way past that. enabling this makes the compiled code more compact, and on rp2040 even decreses memory usage by not needing thunks in sram.
* Release embassy-sync v0.2.0Dario Nieuwenhuis2023-04-139-9/+9
|
* executor: add Pender, rework Cargo features.Dario Nieuwenhuis2023-04-039-9/+9
| | | | | | | | | This introduces a `Pender` struct with enum cases for thread-mode, interrupt-mode and custom callback executors. This avoids calls through function pointers when using only the thread or interrupt executors. Faster, and friendlier to `cargo-call-stack`. `embassy-executor` now has `arch-xxx` Cargo features to select the arch and to enable the builtin executors (thread and interrupt).
* Support codesigning in the firmware updaterhuntc2023-01-122-1/+6
| | | | 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.
* feat: compile bootloader examples for nRF91Ulf Lilleengen2023-01-046-7/+51
| | | | | | | * Add nRF91 as target in CI builds * Add example linker scripts for nrf91 * Make less nRF52 assumptions example config * Add llvm-tools-preview required for cargo objcopy example
* Merge #1139bors[bot]2023-01-044-2/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
| * 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-043-2/+6
| | | | | | | | The memory layout of the s140 crept into a number of memory files, which can cause confusion.
* | embassy-boot (rp): Add WatchdogFlashkalkyl2023-01-031-0/+7
|/
* feat: embassy-boot for rp2040Ulf Lilleengen2022-12-027-0/+198
| | | | | | | 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-298-8/+8
|
* all Cargo.toml: Add license to all crate Cargo.toml fileschrysn2022-10-078-0/+8
| | | | Closes: https://github.com/embassy-rs/embassy/issues/1002
* Remove flash lock/unlock public API from stm32 flash, and perform the ↵Mathias2022-09-307-7/+7
| | | | 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)
* 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-0210-27/+39
|/ | | | | | | | | * 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-178-8/+8
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-2924-50/+58
|
* Use correct chip family name for exampleUlf Lilleengen2022-07-051-1/+1
|
* Fix RAM origin copy paste from nrfUlf Lilleengen2022-06-296-6/+6
|
* Move bootloader main to examplesUlf Lilleengen2022-06-2461-0/+1514
This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead.