-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Place Memfault reboot tracking in backup SRAM
This should ensure the reboot tracking structure stays in the same location through an OTA, where the zephyr `.noinit` region can move (since the `.noinit` structure is placed after `.bss` / `.data`, which can change in size from version to version). Note that an absolute address, via DTS overlay, would be required if other data is placed into the `BACKUP_SRAM` output section, to avoid accidentally relocating the structure.
- Loading branch information
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Enable backup SRAM for storing reboot reason | ||
CONFIG_STM32_BACKUP_SRAM=y | ||
|
||
# Place the reboot reason structure in the backup SRAM output section | ||
CONFIG_MEMFAULT_REBOOT_TRACKING_REGION="BACKUP_SRAM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters