Skip to content

Commit

Permalink
[Silabs] Do not call nvm3_repack() from the FreeRTOS idle hook (#25697)
Browse files Browse the repository at this point in the history
* Do not call nvm3_repack() from the idle hook

* Include the Application Properties structure unconditionally

* Update README files with bootloader info

* Restyled by prettier-markdown

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 24, 2023
1 parent 2d0b3fc commit 5053224
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions examples/light-switch-app/silabs/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ arguments

- Or with the Ozone debugger, just load the .out file.

All EFR32 boards require a bootloader, see Silicon Labs documentation for more
info. Pre-built bootloader binaries are available in the Assets section of the
Releases page on
[Silabs Matter Github](https://github.com/SiliconLabs/matter/releases) .

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down
5 changes: 5 additions & 0 deletions examples/lighting-app/silabs/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ arguments

- Or with the Ozone debugger, just load the .out file.

All EFR32 boards require a bootloader, see Silicon Labs documentation for more
info. Pre-built bootloader binaries are available in the Assets section of the
Releases page on
[Silabs Matter Github](https://github.com/SiliconLabs/matter/releases) .

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down
5 changes: 5 additions & 0 deletions examples/lock-app/silabs/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ arguments

- Or with the Ozone debugger, just load the .out file.

All EFR32 boards require a bootloader, see Silicon Labs documentation for more
info. Pre-built bootloader binaries are available in the Assets section of the
Releases page on
[Silabs Matter Github](https://github.com/SiliconLabs/matter/releases) .

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down
7 changes: 0 additions & 7 deletions examples/platform/silabs/SiWx917/OTAConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
#include "application_properties.h"
#include <app/server/Server.h>

#if defined(SL_COMPONENT_CATALOG_PRESENT)
#include "sl_component_catalog.h"
#endif

// Only include app properties if the Gecko SDK component that does it automatically isn't present
#if !defined(SL_CATALOG_GECKO_BOOTLOADER_INTERFACE_PRESENT)
// Header used for building the image GBL file
#define APP_PROPERTIES_VERSION 1
#define APP_PROPERTIES_ID \
Expand Down Expand Up @@ -71,7 +65,6 @@ __attribute__((used)) ApplicationProperties_t sl_app_properties = {
/// Pointer to Long Token Data Section
.longTokenSectionAddress = NULL,
};
#endif // SL_CATALOG_GECKO_BOOTLOADER_INTERFACE_PRESENT

// Global OTA objects
chip::DefaultOTARequestor gRequestorCore;
Expand Down
3 changes: 0 additions & 3 deletions examples/platform/silabs/SiWx917/matter_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,4 @@ void SI917MatterConfig::InitWiFi(void)
extern "C" void vApplicationIdleHook(void)
{
// FreeRTOS Idle callback

// Check CHIP Config nvm3 and repack flash if necessary.
Internal::SilabsConfig::RepackNvm3Flash();
}
7 changes: 0 additions & 7 deletions examples/platform/silabs/efr32/OTAConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@
#include "application_properties.h"
#include <app/server/Server.h>

#if defined(SL_COMPONENT_CATALOG_PRESENT)
#include "sl_component_catalog.h"
#endif

// Only include app properties if the Gecko SDK component that does it automatically isn't present
#if !defined(SL_CATALOG_GECKO_BOOTLOADER_INTERFACE_PRESENT)
// Header used for building the image GBL file
#define APP_PROPERTIES_VERSION 1
#define APP_PROPERTIES_ID \
Expand Down Expand Up @@ -71,7 +65,6 @@ __attribute__((used)) ApplicationProperties_t sl_app_properties = {
/// Pointer to Long Token Data Section
.longTokenSectionAddress = NULL,
};
#endif // SL_CATALOG_GECKO_BOOTLOADER_INTERFACE_PRESENT

// Global OTA objects
chip::DefaultOTARequestor gRequestorCore;
Expand Down
3 changes: 0 additions & 3 deletions examples/platform/silabs/efr32/matter_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,4 @@ void EFR32MatterConfig::InitWiFi(void)
extern "C" void vApplicationIdleHook(void)
{
// FreeRTOS Idle callback

// Check CHIP Config nvm3 and repack flash if necessary.
Internal::SilabsConfig::RepackNvm3Flash();
}
5 changes: 5 additions & 0 deletions examples/thermostat/silabs/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ arguments

- Or with the Ozone debugger, just load the .out file.

All EFR32 boards require a bootloader, see Silicon Labs documentation for more
info. Pre-built bootloader binaries are available in the Assets section of the
Releases page on
[Silabs Matter Github](https://github.com/SiliconLabs/matter/releases) .

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down
5 changes: 5 additions & 0 deletions examples/window-app/silabs/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ arguments

- Or with the Ozone debugger, just load the .out file.

All EFR32 boards require a bootloader, see Silicon Labs documentation for more
info. Pre-built bootloader binaries are available in the Assets section of the
Releases page on
[Silabs Matter Github](https://github.com/SiliconLabs/matter/releases) .

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down

0 comments on commit 5053224

Please sign in to comment.