Skip to content

Commit b4dfb8e

Browse files
nandojveVge0rge
authored andcommitted
[nrf fromlist] platform: ext: common: template: Fix FOTA upgrade
The 31755 changes modified profile_definition from 32 to 48 bytes in the platform/ext/common/template/flash_otp_nv_counters_backend.h file. This change moved fields that are necessary to perform a an image upgrade. The issue is visible only when upgrading from an old image (without the changes) to a new one or vice versa. This means that TF-M 2.1.1 do not allow upgrade/downgrade to TF-M 2.2.0 or newer. This revert the change to allow migration from Zephyr 3.7.1 LTS to newer images like 4.2.0. More details from the change can be visualized in: https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/31755 Upstream TF-M PR: 42130 Change-Id: Ib01b798c1c1819ccdbc9fbf71a9535f0212afdb6 Signed-off-by: BUDKE Gerson Fernando <[email protected]>
1 parent a1e2c67 commit b4dfb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/ext/common/template/flash_otp_nv_counters_backend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ __PACKED_STRUCT flash_otp_nv_counters_region_t {
5858
uint8_t implementation_id[32];
5959
uint8_t cert_ref[32];
6060
uint8_t verification_service_url[32];
61-
uint8_t profile_definition[48];
61+
uint8_t profile_definition[32];
6262

6363
#ifdef BL2
6464
uint8_t bl2_rotpk_0[BL2_ROTPK_SIZE];

0 commit comments

Comments
 (0)