-
Notifications
You must be signed in to change notification settings - Fork 3k
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
EFM32: sleep manager test fails #12373
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2539 |
cc @ARMmbed/team-silabs @fkjagodzinski |
@amq this test seems to be failing due to test methodology in combination with the hardware in use. us_ticker on Silicon Labs targets exposes a 16-bit timer, running at a frequency that gives at least microsecond resolution (>1MHz). If I change the sleep time to 10ms instead of 20, the test passes. @fkjagodzinski, is it you who is responsible for maintaining this test? |
Yes, @stevew817 I'm the author of this test. @mprse could you look into this? |
I'll check this today. |
The fix can be found here PR #12519. Please review. @stevew817 Just a small clarification for your analysis.
Actually the test handles wraparound on the us ticker: mbed-os/TESTS/mbed_hal/sleep_manager/main.cpp Line 199 in 5969fdf
The problem is that while handling wraparound we have mixed types of values. Timestamps are already converted to us and |
Description of defect
tests-mbed_hal-sleep_manager
almost always fails on EFM32. Other tests apart of #12371 are fine.It errors out at the
sleep_auto
case with:If I comment-out the
sleep_auto
case, then the suite succeeds.Related to #7582
Target(s) affected by this defect ?
Verified on
EFM32GG_STK3700
,EFM32PG12_STK3402
andEFM32GG11_STK3701
, most probably affects all EFM32 targets.Toolchain(s) (name and version) displaying this defect ?
GNU Tools Arm Embedded 9 2019-q4-major
What version of Mbed-os are you using (tag or sha) ?
master
atf73a62afbf4052b4da8c5b862ffb4708a80c1b6e
Also verified with:
mbed-os-5.13.4
at1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.2
How is this defect reproduced ?
The text was updated successfully, but these errors were encountered: