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: cmsis_rtos_v2: adjust timer period to avoid starvation #25415

Merged
merged 1 commit into from
May 19, 2020

Conversation

pabigot
Copy link
Collaborator

@pabigot pabigot commented May 18, 2020

Most boards run with 10 kHz ticks producing a period of 5 ms for 50
tick interval used in the timer periodic test. On Nordic 50 ticks
corresponds to 1.5 ms which is too short to complete the TC_PRINT()
call within the handler, causing the periodic timer to starve the
osDelay that would turn off the timer.

Adjust the period to be at least 5 ms or 50 ticks to avoid this
problem while not breaking other platform with slower tick rates.

Fixes #25196

@pabigot pabigot requested review from andyross and ioannisg May 18, 2020 15:09
@pabigot pabigot requested a review from nashif as a code owner May 18, 2020 15:09
@pabigot pabigot requested a review from carlescufi May 18, 2020 15:09
@zephyrbot zephyrbot added the area: Tests Issues related to a particular existing or missing test label May 18, 2020
Most boards run with 10 kHz ticks producing a period of 5 ms for 50
tick interval used in the timer periodic test.  On Nordic 50 ticks
corresponds to 1.5 ms which is too short to complete the TC_PRINT()
call within the handler, causing the periodic timer to starve the
osDelay that would turn off the timer.

Adjust the period to be at least 5 ms or 50 ticks to avoid this
problem while not breaking other platform with slower tick rates.

Signed-off-by: Peter Bigot <[email protected]>
@pabigot pabigot force-pushed the nordic/20200518b branch from ee467d6 to f21b5ee Compare May 18, 2020 16:15
@carlescufi carlescufi merged commit 4ec5ab2 into zephyrproject-rtos:master May 19, 2020
@pabigot pabigot deleted the nordic/20200518b branch May 26, 2020 12:38
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: portability: cmsis_rtos_v2: hangs on nRF52, 53 and 91 nRF platforms
4 participants