zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.67k stars 6.52k forks source link

samples: subsys: task_wdt: sample.subsys.task_wdt loops endlessly #52707

Closed nordic-piks closed 1 year ago

nordic-piks commented 1 year ago

Describe the bug The samples/subsys/task_wdt/sample.subsys.task_wdt loops endlessly

Observed for

To Reproduce Steps to reproduce the behavior:

  1. have nrf52840dk_nrf52840 connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T samples/subsys/task_wdt -p nrf52840dk_nrf52840 --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output

[2022-11-30T23:55:55.608Z] ERROR   - *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] *** Booting Zephyr OS build zephyr-v3.2.0-2123-g14358aee1cda ***
[2022-11-30T23:55:55.608Z] Task watchdog sample application.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Control thread started.
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] Main thread still alive...
[2022-11-30T23:55:55.608Z] 

Environment (please complete the following information):

henrikbrixandersen commented 1 year ago

Why is this a bug?

mbolivar-nordic commented 1 year ago

@anangl @kl-cruz another WD issue

nordic-piks commented 1 year ago

Why is this a bug?

The test does not ends in expected time - there is timeout in twister after 65 sec. There are no expected messages on console so twister waits till timeout occurs.

henrikbrixandersen commented 1 year ago

Why is this a bug?

The test does not ends in expected time - there is timeout in twister after 65 sec.

There are no expected messages on console so twister waits till timeout occurs.

Thank you. Information like the above is crucial to understanding the issue, you are seeing.

FRASTM commented 1 year ago

Also seen on many stm32 platforms : b_u585i_iot02a, disco_l475_iot1, nucleo_f091rc, nucleo_f103rb, nucleo_f207zg, nucleo_f429zi, nucleo_g071rb, nucleo_g474re, nucleo_h743zi, nucleo_l073rz, nucleo_l152re, nucleo_wb55rg, nucleo_wl55jc, stm32f3_disco, stm32l562e_dk for window watchdog .