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: portability: cmsis_rtos_v2: hangs on nRF52, 53 and 91 nRF platforms #25196

Closed
ioannisg opened this issue May 11, 2020 · 6 comments · Fixed by #25415
Closed

tests: portability: cmsis_rtos_v2: hangs on nRF52, 53 and 91 nRF platforms #25196

ioannisg opened this issue May 11, 2020 · 6 comments · Fixed by #25415
Assignees
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug

Comments

@ioannisg
Copy link
Member

Describe the bug
tests: portability: cmsis_rtos_v2 is hanging when executed on nRF targets

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=board\nrf52dk_nrf52832
  3. make
  4. See error

Keeps printing:

periodic_callback (Timer 2) = 75699
periodic_callback (Timer 2) = 75700
periodic_callback (Timer 2) = 75701
periodic_callback (Timer 2) = 75702
periodic_callback (Timer 2) = 75703
periodic_callback (Timer 2) = 75704
periodic_callback (Timer 2) = 75705
periodic_callback (Timer 2) = 75706
periodic_callback (Timer 2) = 75707

Expected behavior
Should pass

Environment (please complete the following information):

  • Commit SHA or Version used: Zephyr v2.3.0-rc1

Additional context
Add any other context about the problem here.

@ioannisg ioannisg added bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug platform: nRF Nordic nRFx labels May 11, 2020
@ioannisg ioannisg changed the title tests: portability: cmsis_rtos_v2: fails on several nRF platforms tests: portability: cmsis_rtos_v2: fails on nRF52, 53 and 91 nRF platforms May 11, 2020
@ioannisg ioannisg changed the title tests: portability: cmsis_rtos_v2: fails on nRF52, 53 and 91 nRF platforms tests: portability: cmsis_rtos_v2: hangs on nRF52, 53 and 91 nRF platforms May 11, 2020
@carlescufi carlescufi added the area: Tests Issues related to a particular existing or missing test label May 11, 2020
@vanti
Copy link
Collaborator

vanti commented May 12, 2020

Same output seen printed out indefinitely on cc1352r1_launchxl.

@carlescufi
Copy link
Member

@ioannisg and @pabigot could you please spend some time on this one?
cc @andyross

@pabigot
Copy link
Collaborator

pabigot commented May 18, 2020

Broken by 10d15d1, not the same problem as #24660. Here the issue is that the periodic timer handler takes longer to run than the interval, and starves the osDelay() that would turn off the timer. This is because the default PERIOD_TICKS=50 on most boards corresponds to 5 ms, but on Nordic it corresponds to 1.5 ms, which is too short to complete the TC_PRINT call in the handler. Fix in #25415

@chen-png
Copy link
Collaborator

for nrf platforms, the tests/portability/cmsis_rtos_v2 is passed, but it seems that causing it failed on up_squared board.

*** Booting Zephyr OS build v2.3.0-rc1-175-gec9a4139834a ***
Running test suite test_cmsis_v2_apis

starting test - test_kernel_apis
PASS - test_kernel_apis

starting test - test_delay
PASS - test_delay

starting test - test_thread_apis
PASS - test_thread_apis

starting test - test_thread_prio_dynamic
PASS - test_thread_prio_dynamic

starting test - test_messageq
E: Page fault at address 0xd25ff8 (error code 0x3)
E: Access violation: supervisor thread not allowed to write

E: PML4E: 0x0000000000d15827 Writable, User, Execute Enabled
E: PDPTE: 0x0000000000d14827 Writable, User, Execute Enabled
E: PDE: 0x0000000000d0d023 Writable, Supervisor, Execute Enabled
E: PTE: 0x8000000000d25001 Read-only, Supervisor, Execute Disable
E: RAX: 0x00000000001a4c06 RBX: 0x0000000000d1cd60 RCX: 0x000000000000000c RDX: 0x0000000000d26030
E: RSI: 0x0000000000d1cd60 RDI: 0x0000000000d1dbc8 RBP: 0x0000000000d1cd60 RSP: 0x0000000000d26000
E: R8: 0x0000000000d26030 R9: 0x0000000000000000 R10: 0x0000000000000000 R11: 0x0000000000000000
E: R12: 0x0000000000000001 R13: 0x0000000000d1dbc8 R14: 0x0000000000d1dbc8 R15: 0x0000000000000000
E: RSP: 0x0000000000d26000 RFLAGS: 0x0000000000010007 CS: 0x0018 CR3: 0x0000000000115000
E: RIP: 0x0000000000103f93
E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
E: Current thread: 0x0000000000d18f90 (send_thread)
E: Halting system

@pabigot
Copy link
Collaborator

pabigot commented May 20, 2020

@chen-png please open another issue for that failure, which could instead be due to unrelated recent changes to that platform.

@chen-png
Copy link
Collaborator

yes, i reported another issue #25507

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 bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants