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

boot: zephyr: Allow disabling NRFX_WDT on nRF devices #2070

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

joerchan
Copy link
Contributor

Allow disabling feeding the watchdog on nrf devices directly using the nrfx_wdt functions.
The imply on NRFX_WDT cannot be disabled since NRFX_WDT is a promptless symbol and cannot be assigned in a config fragment. Not even deleting the wdt0 node in a devicetree overlay works since the configuration takes predence and ends in a #error without any nrfx_wdt instances.

To fix this create new Kconfig option with prompt and change the imply to this option. That way the option can be assigned to off by the user.

This is needed to support the use case of an external watchdog controlled using the zephyr watchdog API instead of the wdt peripheral.

boot/zephyr/Kconfig Outdated Show resolved Hide resolved
Allow disabling feeding the watchdog on nrf devices directly
using the nrfx_wdt functions.
The imply on NRFX_WDT cannot be disabled since NRFX_WDT is a
promptless symbol and cannot be assigned in a config fragment.
Not even deleting the wdt0 node in a devicetree overlay works
since the configuration takes predence and ends in a #error without
any nrfx_wdt instances.

To fix this create new Kconfig option with prompt and change the imply
to this option. That way the option can be assigned to off by the user.

This is needed to support the use case of an external watchdog
controlled using the zephyr watchdog API instead of the wdt peripheral.

Signed-off-by: Joakim Andersson <[email protected]>
@nordicjm nordicjm merged commit f8d8004 into mcu-tools:main Sep 25, 2024
58 checks passed
@joerchan joerchan deleted the allow-external-watchdog branch September 25, 2024 16:15
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.

3 participants