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

tests: watchdog: Update test to support ATSAMxxxx based board #14968

Closed

Conversation

overheat
Copy link
Contributor

ATSAM watchdog driver does not support callback which is not expected by
the test. Update to make testing able to run on ATSAM watchdog drivers.

Fixes #13468 for Arduino_due and so on.

Signed-off-by: Aaron Tsui aaron.tsui@outlook.com

@cinlyooi-intel
Copy link
Contributor

cinlyooi-intel commented Mar 29, 2019

@overheat : Sorry, but when checkout this pull request and run the test (sam_e70_xplained, f5a4a698ec17e6a78299966a1a3fe73c3404b78d), I get infinite loop on test_wdt_no_callback

***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****
***** Booting Zephyr OS v1.14.0-rc1-1515-g8fdb1b091138 (delayed boot 1000ms) *****
Running test suite wdt_basic_test
===================================================================
starting test - test_wdt
Testcase: test_wdt_no_callback
Waiting to restart MCU
***** delaying boot 1000ms (per build configuration) *****

@overheat
Copy link
Contributor Author

overheat commented Apr 3, 2019

According to #15109, ATSAME70 don't preserve RAM when watchdog triggers, which is a kind of chip bug and also cause failure in watchdog test. So exclude this series of chips from this test.

@overheat overheat force-pushed the fix_test_sam_wdog branch from bb9909f to 3d8aea9 Compare April 5, 2019 02:19
@SavinayDharmappa SavinayDharmappa self-requested a review April 8, 2019 07:26
#elif defined(CONFIG_WDT_SAM)
#ifdef CONFIG_SOC_SERIES_SAME70
#error SAME70 series chip NOT supports this test.
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change is required ? as u are spiking the test by adding the same70 to platform exclude in testcase.yaml file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SavinayDharmappa according to #15109. section .noinit be cleared(random) during the boot process on ATSAME70 MCU (SAM E70 Xplained board), this bug comes from the SoC itself and not from Zephyr.
I have adding the same70 to platform exclude in testcase.yaml file.

@overheat
Copy link
Contributor Author

@nashif @cinlyooi-intel @SavinayDharmappa @ManojSubbarao
I have split the changes into 2 logical commits. The first one fixed all ATSAM series SoC based board testing and the second one exclude the ATSAME70 from this testing, because ATSAME70 don't preserve RAM when watchdog triggers, it's an SoC hardware bug.
Please help to review this PR.

@ioannisg
Copy link
Member

Hi, @overheat could you please rebase this one, so we can look at it again? thanks in advance

@overheat
Copy link
Contributor Author

overheat commented Jul 1, 2019

Sure. For a moment.

ATSAM watchdog driver does not support callback which is not expected by
the test. Update to make testing able to run on ATSAM watchdog drivers.

ATSAME70 is NOT support this test, because the RAM is not preserved when
the watchdog triggers.

Fixes zephyrproject-rtos#13468

Signed-off-by: Aaron Tsui <aaron.tsui@outlook.com>
@overheat overheat force-pushed the fix_test_sam_wdog branch from 9969331 to 9755ef6 Compare July 1, 2019 00:31
@zephyrbot zephyrbot added the area: Tests Issues related to a particular existing or missing test label Jul 1, 2019
@overheat overheat closed this Jul 18, 2019
@overheat overheat reopened this Jul 18, 2019
@zephyrproject-rtos zephyrproject-rtos deleted a comment from codecov-io Dec 19, 2019
@nashif
Copy link
Member

nashif commented Dec 21, 2019

the issue was solved in another PR

@nashif nashif closed this Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests/drivers/watchdog/wdt_basic_api/testcase.yaml: Various version of "Waiting to restart MCU"
6 participants