aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot/src/partition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy Partition type and use the one from embedded-halRasmus Melchior Jacobsen2023-05-301-144/+0
|
* embassy-boot: add nightly feature gate for async usagesander2023-04-141-26/+25
|
* embassy-boot: add nightly feature gatessander2023-04-111-21/+27
|
* Let Partition range be u32 instead of usizeRasmus Melchior Jacobsen2023-04-051-5/+4
|
*-. Merge #1324 #1327bors[bot]2023-04-041-9/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1324: Add MCO support for L4 and F4 families r=Dirbaio a=m-dupont Add MCO support for L4 and F4 as already done in F7. When the 'HSI' source is selected as MCO source, 'HSI' is activated (`set_hsion(true)`) . This is done to operate the MCO in case 'MSI' is chosen as the clock source for the CPU. The same applies to PLL, etc. 1327: Avoid write before erase r=Dirbaio a=rmja This introduces an additional marker to the state partition right after the magic which indicates whether the current progress is valid or not. Validation in tests that we never write without an erase is added. There is currently a FIXME in the FirmwareUpdater. Let me know if we should take the erase value as a parameter. I opened a feature request in embedded-storage to get this value in the trait. Before this, the assumption about ERASE_VALUE=0xFF was the same. I have made some thoughts about whether this is a breaking change between the app and firmware, i.e. whether adding the "Progress valid" field is breaking. My conclusion is that it is not a breaking change. For the case where an app uses this new FirmwareUpdater together with an old bootloader, what it now does, is that it: 1. Writes the progress valid field to all zeros. This field is not known in the old bootloader, so it actually writes a "current progress" index. 2. The entire state partition is erased - effectively removing any trace of 1. 3. Set magic This should be compatible. Co-authored-by: Mathieu Dupont <[email protected]> Co-authored-by: Rasmus Melchior Jacobsen <[email protected]>
| | * Move MemFlash to separate module and add verify_erased_before_write verificationRasmus Melchior Jacobsen2023-04-031-9/+9
| |/
* / Expose read/write/erase on partitionRasmus Melchior Jacobsen2023-04-041-16/+6
|/
* Add erase and wipe testsRasmus Melchior Jacobsen2023-03-311-0/+46
|
* Let bootloader partition have read/write/erase operationsRasmus Melchior Jacobsen2023-03-311-3/+85
| | | | This change should not have any breaking changes.
* Split bootloader implementation into multiple filesRasmus Melchior Jacobsen2023-03-311-0/+22