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

nrf5340 randomly freezes for 512 seconds #86802

Open
a-int opened this issue Mar 8, 2025 · 2 comments
Open

nrf5340 randomly freezes for 512 seconds #86802

a-int opened this issue Mar 8, 2025 · 2 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx

Comments

@a-int
Copy link

a-int commented Mar 8, 2025

On a custom device using the nRF5340, running nRF Connect SDK 2.5.0 with Zephyr 3.4.99, a systematic bug causes the system to freeze for 512 seconds.
This issue is difficult to track, as its occurrence and timing vary, even under identical test conditions.

Software timers are used to ensure the periodicity of the thread that reads the I2C data and starts the BLE scanning. Another timing critical task is done by hardware nRF timer 2. Hardware timer is used with IRQ zero latency settings. RTOS kernel itself works in multithreading mode with time slicing equal to 1 ms

The delays set by k_sleep do not exceed a couple of tens of milliseconds. I tried to get rid of BLE completely and minimize the load on the system by excluding I2C reading, which resulted in the occurrence of this bug a little less often.
Also, going from TICKLESS_KERNEL=y to TICKLESS_KERNEL=n improves the situation, but significantly reduces timing accuracy, which is also critical for the project.

I suspect that this clearly has something to do with the nrf_rtc_timer that Zephyr uses to implement timings, but I have no idea what would solve this problem at the moment.

@a-int a-int added the bug The issue is a bug, or the PR is fixing a bug label Mar 8, 2025
Copy link

github-actions bot commented Mar 8, 2025

Hi @a-int! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@henrikbrixandersen
Copy link
Member

Thank you for reporting this. However - unless you are able to reproduce this issue with upstream Zephyr main - please report issues with the nRF Connect SDK (NCS) on the Nordic Semiconductor DevZone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx
Projects
Status: To triage
Development

No branches or pull requests

4 participants