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.04k stars 6.18k forks source link

it8xxx2_evb: tests/drivers/watchdog/wdt_basic_api/drivers.watchdog fails #75389

Open majunkier opened 3 days ago

majunkier commented 3 days ago

Describe the bug The system outputs an error indicating that it is waiting to restart the MCU. However, the expected restart does not occur. Manual reboot during test execution makes the test pass, so the problem could be with the wake-up part of watchdog.

To Reproduce

twister -p it8xxx2_evb --device-testing --west-flash="<ITE_TOOL_PATH>" --device-serial=<DEV_SERIAL> -s tests/drivers/watchdog/wdt_basic_api/drivers.watchdog

Expected behavior Test should pass

Impact Not clear

Logs and console output

tests/drivers/watchdog/wdt_basic_api/drivers.watchdog  FAILED Timeout (device: A50285BI, 68.712s)
INFO    - twister-out/it8xxx2_evb/tests/drivers/watchdog/wdt_basic_api/drivers.watchdog/handler.log
ERROR   - Running TESTSUITE wdt_basic_test_suite
===================================================================
START - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU

Environment (please complete the following information):

Dino-Li commented 2 days ago

@GTLin08 can you look into this issue?

Dino-Li commented 2 days ago

@majunkier If the watchdog test is executed right after flashing test firmware image, failure symptom is expected. Because SOC have to enter the DBGR mode to reflash firmware image. In this mode, the watchdog function will be disabled until we perform a cold reset for SOC.

SzymonRichert commented 1 day ago

@Dino-Li - this is and automatic test which should Pass. If it can't pass the way it is written, we should modify this test or exclude its execution on this platform.