timer_api intermittent failures on Nordic nRF #23106
Labels
area: Tests
Issues related to a particular existing or missing test
area: Timer
Timer
bug
The issue is a bug, or the PR is fixing a bug
platform: nRF
Nordic nRFx
priority: low
Low impact/importance bug
The same failure identified in #21813 and #22623 can occur on Nordic hardware:
Analysis suggests this is a false failure: the test measures durations in milliseconds, while the Nordic clock tracks 32 KiHz (32768 Hz) ticks that don't align to millisecond boundaries. Since information is lost every time a 32 KiHz count is truncated to a 1000 Hz count it's possible that the difference in time measured in 32 KiHz counts is greater than 100 ms while the difference in 1000 Hz counts is less than 100 ms. To avoid the information loss the timestamps need to be measured in hardware ticks with millisecond durations calculated directly from the difference in hardware ticks.
The text was updated successfully, but these errors were encountered: