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

[BUG] nrf9160 (Cortex-M33) with tickless enabled randomly locks up in ostest #13883

Open
1 task done
raiden00pl opened this issue Oct 7, 2024 · 2 comments
Open
1 task done
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Kernel Kernel issues

Comments

@raiden00pl
Copy link
Contributor

Description / Steps to reproduce the issue

nrf9160 (Cortex-M33) with tickless enabled randomly locks up in ostest (in random places).

Tested with config: ./tools/configure.sh nrf9160-dk/ostest_tickless

When tickless is disabled, the problem doesn't occur.
CONFIG_DEBUG_ASSERTIONS=y makes the problem not occur (or its harder to trigger).

The problem doesn't occur on release/12.6 (or its harder to trigger).

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Arch Linux

NuttX Version

nuttx-12.7.0-RC0, master

Issue Architecture

[Arch: arm]

Issue Area

[Area: Kernel]

Verification

  • I have verified before submitting the report.
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: Kernel Kernel issues labels Oct 7, 2024
@raiden00pl
Copy link
Contributor Author

most likely broken by #13283

@Fix-Point
Copy link
Contributor

Fix-Point commented Nov 1, 2024

Currently I don't have a board to verify this. However, from the code, it seems to be a problem with the RTC tickless alarm driver. The function rtc_prepare_alarm in arch/arm/src/nrf91/nrf91_tickless_rtc.c may lose the next timer setting if the current time has exceeded the next time to be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Kernel Kernel issues
Projects
None yet
Development

No branches or pull requests

2 participants