Skip to content

Conversation

JordanYates
Copy link
Contributor

Fix a variety of issues stopping DFU from "nRF Connect for Mobile" working with TF-M applications.

Update zephyr fork to fix:
 * TFM image padding
 * TFM security counter default behaviour
 * add validation of TFM partitions for `TFM_DEVICETREE_LAYOUT`.
 * enable GPIO control in the SPI-NOR CMSIS driver

Signed-off-by: Jordan Yates <[email protected]>
Add the bootloader `.elf` to TFM debug configuration.

Signed-off-by: Jordan Yates <[email protected]>
Ensure that the bootloader holds the SD enable pin high (disabled) when
using the SPI NOR driver, as otherwise the floating enable causes
instability in the SPI comms.

Signed-off-by: Jordan Yates <[email protected]>
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.67%. Comparing base (eb47b96) to head (b783927).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #241   +/-   ##
=======================================
  Coverage   92.67%   92.67%           
=======================================
  Files         102      102           
  Lines        3797     3797           
  Branches      589      589           
=======================================
  Hits         3519     3519           
  Misses        137      137           
  Partials      141      141           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Fix partition configuration for devices that offload the secondary image
to external flash. The previous definitions had overlapping definitions
for the nonsecure application and storage partitions.

Signed-off-by: Jordan Yates <[email protected]>
Allow confirming TF-M images from mcumgr for non-active applications.
This is required to enable OTA updates of TF-M applications that use
`OVERWRITE-ONLY`.

In the same vein, allow erasing images marked as pending, which is how
images can remain after performing the OTA update.

Signed-off-by: Jordan Yates <[email protected]>
Enable the reassembly functionality and set the minimum buffer size to
enable successfully updating a device with the "nRF Connect for Mobile"
application.

Signed-off-by: Jordan Yates <[email protected]>
@JordanYates JordanYates merged commit 95186cb into main Sep 9, 2024
9 checks passed
@JordanYates JordanYates deleted the feature/mcumgr_dfu branch September 9, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant