Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EFR32] Adjust the internal flash layout #19523

Merged
merged 36 commits into from
Jun 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
35fad7d
Test added march 8 (#15957)
kowsisoundhar12 Mar 9, 2022
d5f4b0b
[OTA] Fix OTARequestorDriverImpl inclusion (#15981)
carol-apple Mar 9, 2022
9bee828
Regen to fix CI failures (#15990)
bzbarsky-apple Mar 9, 2022
b942392
[ota] Store Default OTA Providers in flash (#15970)
Damian-Nordic Mar 9, 2022
c219807
Merge branch 'master' of github.com:project-chip/connectedhomeip
selissia Mar 11, 2022
fa279bc
Merge branch 'project-chip:master' into master
selissia Mar 11, 2022
9e18f9b
Merge branch 'project-chip:master' into master
selissia Mar 14, 2022
b6ca5ca
Merge branch 'project-chip:master' into master
selissia Mar 15, 2022
135dc25
Merge branch 'project-chip:master' into master
selissia Mar 18, 2022
0446c67
Merge branch 'project-chip:master' into master
selissia Mar 22, 2022
e69e63c
Merge branch 'project-chip:master' into master
selissia Mar 23, 2022
a40f6df
Merge branch 'project-chip:master' into master
selissia Mar 24, 2022
e5925ba
Merge branch 'project-chip:master' into master
selissia Mar 30, 2022
0435362
Merge branch 'project-chip:master' into master
selissia Apr 5, 2022
40b3412
Merge branch 'project-chip:master' into master
selissia Apr 12, 2022
d197cb5
Merge branch 'project-chip:master' into master
selissia Apr 13, 2022
e9b685d
Merge branch 'project-chip:master' into master
selissia Apr 15, 2022
ef11df2
Merge branch 'project-chip:master' into master
selissia Apr 18, 2022
b088f83
Merge branch 'project-chip:master' into master
selissia Apr 27, 2022
8530810
Merge branch 'project-chip:master' into master
selissia Apr 29, 2022
87a9581
Merge branch 'project-chip:master' into master
selissia May 4, 2022
d9b496d
Merge branch 'project-chip:master' into master
selissia May 10, 2022
2d283df
Merge branch 'project-chip:master' into master
selissia May 12, 2022
2639213
Merge branch 'project-chip:master' into master
selissia May 13, 2022
995a07e
Merge branch 'project-chip:master' into master
selissia May 18, 2022
139f480
Merge branch 'project-chip:master' into master
selissia May 19, 2022
f0beac0
Merge branch 'project-chip:master' into master
selissia May 20, 2022
70059e4
Merge branch 'project-chip:master' into master
selissia Jun 1, 2022
4faa576
Merge branch 'project-chip:master' into master
selissia Jun 2, 2022
e22e2fc
Merge branch 'project-chip:master' into master
selissia Jun 2, 2022
db5089c
Merge branch 'project-chip:master' into master
selissia Jun 6, 2022
8c46946
Merge branch 'project-chip:master' into master
selissia Jun 10, 2022
1a7e9fc
Merge branch 'project-chip:master' into master
selissia Jun 10, 2022
b04ac51
Do not initialize the certificate pointer in ApplicationProperties_t
selissia Jun 13, 2022
0a83969
Reserve the last page of the flash for the manufacturing tokens
selissia Jun 13, 2022
d24a6ec
Remove merge artifacts
selissia Jun 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions examples/platform/efr32/OTAConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@
#include "platform/bootloader/api/application_properties.h"
#include <app/server/Server.h>

#define BOOTLOADER_SUPPORT_CERTIFICATES 1
#define APPLICATION_CERTIFICATE_VERSION (1UL)

#if defined(BOOTLOADER_SUPPORT_CERTIFICATES)
const ApplicationCertificate_t sl_app_certificate = {
.structVersion = APPLICATION_CERTIFICATE_VERSION,
.flags = { 0U },
.key = { 0U },
.version = 0,
.signature = { 0U },
};
#endif

// Header used for building the image GBL file
#define APP_PROPERTIES_VERSION 1
#define APP_PROPERTIES_ID \
Expand Down Expand Up @@ -71,15 +58,11 @@ __attribute__((used)) ApplicationProperties_t sl_app_properties = {
/// Unique ID (e.g. UUID/GUID) for the product this application is built for
.productId = APP_PROPERTIES_ID,
},
#if defined(BOOTLOADER_SUPPORT_CERTIFICATES)
// If certificate based boot chain is enabled, the bootloader binary will be provided with
// a certificate that does not contain any key.
// A valid certificate needs to be injected to the bootloader images using Simplicity Commander.
// Simplicity Commander will replace this certificate.
.cert = (ApplicationCertificate_t *)&sl_app_certificate,
#else

/// Pointer to information about the certificate
.cert = NULL,
#endif

/// Pointer to Long Token Data Section
.longTokenSectionAddress = NULL,
};

Expand Down
1 change: 1 addition & 0 deletions examples/platform/efr32/ldscripts/efr32mg12.ld
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ SECTIONS
KEEP(*(.simee*))
} > FLASH

/* Last page of flash is reserved for the manufacturing token space */
linker_nvm_end = __main_flash_end__ - 2048;
linker_nvm_begin = linker_nvm_end - SIZEOF(.nvm);
linker_nvm_size = SIZEOF(.nvm);
Expand Down
3 changes: 2 additions & 1 deletion examples/platform/efr32/ldscripts/efr32mg24.ld
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ SECTIONS
KEEP(*(.simee*))
} > FLASH

linker_nvm_end = __main_flash_end__;
/* Last page of flash is reserved for the manufacturing token space */
linker_nvm_end = __main_flash_end__ - 8192;
linker_nvm_begin = linker_nvm_end - SIZEOF(.nvm);
linker_nvm_size = SIZEOF(.nvm);
__nvm3Base = linker_nvm_begin;
Expand Down