Skip to content

Conversation

@nordic-segl
Copy link
Contributor

…of .bss and .data

In some configurations, code is copied from non-volatile memory to RAM before a core (using that code) is booted.
When that core is reset by expired watchdog, variables shall be restored to "initial" values.

This is problematic because the core is aware of copy in RAM. It may not know address in non-volatile memory, where "original" code is stored.

Add tests which verifiest that .bss and .data sections are correct when core boots from reset caused by expired watchdog.

Upstream PR #: 86217

@nordic-segl nordic-segl force-pushed the NRFX-7126_Add-wdt-test-for-bss-and-data-sections branch 2 times, most recently from d22bf7d to d56eefc Compare February 26, 2025 07:59
…of .bss and .data

In some configurations, code is copied from non-volatile memory
to RAM before a core (using that code) is booted.
When that core is reset by expired watchdog, variables shall be
restored to "initial" values.

This is problematic because the core is aware of copy in RAM.
It may not know address in non-volatile memory, where "original"
code is stored.

Add tests which verifiest that .bss and .data sections are
correct when core boots from reset caused by expired watchdog.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
(cherry picked from commit 81df84a)
@nordic-segl nordic-segl force-pushed the NRFX-7126_Add-wdt-test-for-bss-and-data-sections branch from d56eefc to 4f6ec8e Compare March 12, 2025 14:14
@nordic-segl nordic-segl changed the title [nrf fromlist] tests: drivers: watchdog: Add test for initialization … [nrf fromtree] tests: drivers: watchdog: Add test for initialization … Mar 12, 2025
@nordicjm nordicjm merged commit 9f33ae8 into nrfconnect:main Mar 13, 2025
18 checks passed
@nordic-segl nordic-segl deleted the NRFX-7126_Add-wdt-test-for-bss-and-data-sections branch March 13, 2025 07:25
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.

4 participants