arduino / arduino/ArduinoCore-renesas

Uno R4 WDT IRQ support is excluded in libbsp.a

Open
#377 0 comments 0 reactions 0 assignees View on GitHub
topic: code
Dominant language
C
Stars
193
Forks
112
PR merge metrics
No merged PRs in 30d

Description

`WDT_CFG_REGISTER_START_NMI_SUPPORTED` is 0 so all support for watchdog interrupt is excluded in r_wdt.c.
Then `p_cfg.reset_control = WDT_RESET_CONTROL_NMI` does nothing in `R_WDT_Open` and `R_WDT_StatusClear` doesn't work either.

It is possible to work around it and set the callback and activate the interrupt (and clear status) directly, but it would be nicer/simpler with the support in the HAL.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in r_wdt.c and trace how WDT_CFG_REGISTER_START_NMI_SUPPORTED controls watchdog interrupt support. Check the R_WDT_Open path for WDT_RESET_CONTROL_NMI and R_WDT_StatusClear, then verify that the HAL exposes callback activation and status clearing for the Uno R4 WDT IRQ configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.