Skip to content

Commit

Permalink
tests nrf_rtc_timer: Avoid failures w NRF53_SYNC_RTC enabled
Browse files Browse the repository at this point in the history
This test assumes it can use all configured
NRF_RTC_TIMER_USER_CHAN_COUNT,
But the sync RTC code uses one while it synchronizes.
Let's just disable it the sync rtc.

This fixes an issue where the test fails for a simulated
nrf5340.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar committed Nov 2, 2023
1 parent 5f7d2f2 commit 90fec53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/drivers/timer/nrf_rtc_timer/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ CONFIG_ZTEST=y
CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT=2
CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768

# This test assumes it can use all configured NRF_RTC_TIMER_USER_CHAN_COUNT
# But the sync RTC code uses one while it synchronizes. Let's just disable it.
CONFIG_NRF53_SYNC_RTC=n

# Debug build
# CONFIG_NO_OPTIMIZATIONS=y
# CONFIG_ZTEST_STACK_SIZE=2048
Expand Down

0 comments on commit 90fec53

Please sign in to comment.