Skip to content

Commit

Permalink
samples: matter: Switch Application Watchdog to wdt31 for nRF54l15
Browse files Browse the repository at this point in the history
wdt30 is reserved for Secure purposes and we need to switch to
the wdt31 instance for application purposes.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
  • Loading branch information
ArekBalysNordic authored and rlubos committed May 28, 2024
1 parent c81f6c1 commit 5f4c331
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/nrf/protocols/matter/end_product/test_event_triggers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ For example the ``0xFFFFFFFF00011234`` activation code stands for a trigger ID e

.. note::

Activation codes in range from ``0x0000000000000000`` to ``0xFFFFFFFF00000000`` are reserved for Matter stack purposes and should not be defined as custom event triggers.
Activation codes in range from ``0x0000000000000000`` to ``0xFFFFFFFF00000000`` are reserved for Matter stack purposes and should not be defined as custom event triggers.

A new event trigger consists of two fields: ``Mask``, and ``Callback``.

Expand Down Expand Up @@ -262,7 +262,7 @@ To register a new test event trigger, follow these steps:
If the returning `CHIP_ERROR` code is equal to `CHIP_ERROR_NO_MEMORY`, you need to increase the :kconfig:option:`NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX` kconfig option to the higher value.

Here's an example to handle the ``0xFFFFFFFF00010000`` activation code, where 1234 is the event trigger value field:
Here's an example to handle the ``0xFFFFFFFF00011234`` activation code, where 1234 is the event trigger value field:

.. code-block:: c++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

// Configure PWM module for led1 (LED2 on the board)
pwm-led1 = &pwm_led1;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};

pwmleds {
Expand Down Expand Up @@ -72,6 +75,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

// Configure PWM module for led1 (LED2 on the board)
pwm-led1 = &pwm_led1;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};

pwmleds {
Expand Down Expand Up @@ -73,6 +76,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
aliases {
factory-data = &factory_data;
factory-data-memory-region = &rram0;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};
};

Expand Down Expand Up @@ -41,6 +44,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
aliases {
factory-data = &factory_data;
factory-data-memory-region = &rram0;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};
};

Expand Down Expand Up @@ -41,6 +44,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
aliases {
factory-data = &factory_data;
factory-data-memory-region = &rram0;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};
};

Expand Down Expand Up @@ -41,6 +44,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// Configure PWM module for led1 (LED2 on the board)
pwm-led1 = &pwm_led1;
pwm-led2 = &pwm_led2;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};

pwmleds {
Expand Down Expand Up @@ -76,6 +79,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// Configure PWM module for led1 (LED2 on the board)
pwm-led1 = &pwm_led1;
pwm-led2 = &pwm_led2;

// Use watchdog wdt31 as the application watchdog
watchdog0 = &wdt31;
};

pwmleds {
Expand Down Expand Up @@ -76,6 +79,6 @@
};
};

&wdt30 {
&wdt31 {
status = "okay";
};

0 comments on commit 5f4c331

Please sign in to comment.