Skip to content

test_valid_function_without_alarm in counter_basic_apis tests run fails for countdown timer #89065

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

Open
Dat-NguyenDuy opened this issue Apr 25, 2025 · 0 comments · May be fixed by #89066
Open
Assignees
Labels
area: Counter bug The issue is a bug, or the PR is fixing a bug platform: NXP S32 NXP Semiconductors, S32

Comments

@Dat-NguyenDuy
Copy link
Collaborator

Describe the bug
test_valid_function_without_alarm in tests\drivers\counter\counter_basic_apis run fails for countdown timer.

To Reproduce
Let use one of platform that has countdown timer like the PIT on s32z270dc2 board

west build -p -b s32z2xxdc2@D/s32z270/rtu0 .\tests\drivers\counter\counter_basic_api\

Expected behavior
The test should pass

Impact
Cause the vendor CI run fails

Logs and console output

===================================================================
START - test_valid_function_without_alarm
Testing pit0_channel@0

    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/counter/counter_basic_api/src/test_counter.c:750: test_valid_function_without_alarm: (ticks not between ticks_expected > ticks_tol ? ticks_expected - ticks_tol : 0 and ticks_expected + ticks_tol inclusive)
pit0_channel@0: counter ticks not in tolerance
 FAIL - test_valid_function_without_alarm in 0.035 seconds
===================================================================
TESTSUITE counter_basic failed.
Running TESTSUITE counter_no_callback
===================================================================
E: ***** PREFETCH ABORT *****
E: Translation Fault @ 0x00000000
E: r0/a1:  0x7991f088  r1/a2:  0x00000000  r2/a3:  0x31780d1c
E: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x79901a20
E:  xpsr:  0x00000113
E: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
E: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
E: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
E: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
E: fpscr:  0x00000000
E: Faulting instruction address (r15/pc): 0x00000000
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x31780858 (main)
E: Halting system

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows)
  • Toolchain (e.g Zephyr SDK, ...)
  • Commit SHA or Version used

Additional context
N/A

@Dat-NguyenDuy Dat-NguyenDuy added bug The issue is a bug, or the PR is fixing a bug area: Counter labels Apr 25, 2025
@Dat-NguyenDuy Dat-NguyenDuy changed the title test_valid_function_without_alarm in tests\drivers\counter\counter_basic_apis run fails for countdown timer test_valid_function_without_alarm in counter_basic_apis tests run fails for countdown timer Apr 25, 2025
@manuargue manuargue added the platform: NXP S32 NXP Semiconductors, S32 label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter bug The issue is a bug, or the PR is fixing a bug platform: NXP S32 NXP Semiconductors, S32
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants