aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/nrf/src
Commit message (Collapse)AuthorAgeFilesLines
* Flatten embassy-boot dir treeDario Nieuwenhuis2024-01-112-403/+0
|
* Remove nightly and unstable-traits features in preparation for 1.75.Dario Nieuwenhuis2023-11-291-3/+2
|
* Sync all fmt.rs files.Dario Nieuwenhuis2023-08-301-6/+39
|
* boot: release flash after prepare and refactor apiUlf Lilleengen2023-08-111-25/+12
| | | | | | This refactoring of the chip specific bootloader creates the internal boot instance and aligned buffer in the prepare stage, so that they are automatically dropped after. This unlocks a use case where peripherals owning the flash need to be Drop'ed before load() happens.
* Refactor firmware updaterUlf Lilleengen2023-08-061-2/+4
| | | | | * Allow manipulating state without accessing DFU partition. * Provide aligned buffer when creating updater to reduce potential wrong parameters passed.
* feat: make nrf bootloader watchdog generic for any flashUlf Lilleengen2023-08-021-13/+13
|
* Align examplesRasmus Melchior Jacobsen2023-05-301-1/+3
|
* Align nrfRasmus Melchior Jacobsen2023-05-301-54/+17
|
* Protect default implementations for FirmwareUpdater and BootLoaderRasmus Melchior Jacobsen2023-05-221-0/+1
| | | | 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.
* embassy-boot: add nightly feature to stm32 and rp as wellsander2023-04-201-1/+0
|
* merge embassy/mastersander2023-04-111-14/+12
|\
| * Align platform specific bootloadersRasmus Melchior Jacobsen2023-04-051-6/+6
| |
| * Align examples with bootloader changesRasmus Melchior Jacobsen2023-04-041-1/+1
| |
| * Align chip specific boot projects with new prepare_boot() signatureRasmus Melchior Jacobsen2023-04-041-8/+6
| |
* | embassy-boot: add default nightly feature, makes it possible to compile with ↵sander2023-03-221-1/+1
|/ | | | the stable compiler
* 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.
* fix: add required metadata for embassy-bootUlf Lilleengen2022-11-251-1/+1
|
* Move default initializer function to Default trait implementationMathias2022-11-011-2/+4
|
* Update Rust nightly.Dario Nieuwenhuis2022-09-221-1/+0
| | | | Removes feature(generic_associated_types)
* Remove generic const expressions from embassy-bootUlf Lilleengen2022-09-021-12/+23
| | | | | | | | | * 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
* Move bootloader main to examplesUlf Lilleengen2022-06-241-48/+0
| | | | | This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead.
* Run rustfmt.Dario Nieuwenhuis2022-06-122-13/+5
|
* Allow using separate page sizes for state and dfuUlf Lilleengen2022-04-281-3/+11
| | | | | | | * 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-272-5/+2
|
* Add stm32 flash + bootloader supportUlf Lilleengen2022-04-271-29/+1
| | | | | | | | * 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-192-3/+9
| | | | | | | | * 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.
* Address review commentsUlf Lilleengen2022-02-092-1/+11
|
* Add embassy-bootUlf Lilleengen2022-02-093-0/+474
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.