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

bluetooth: fast_pair: fmdn: add uptime workaround to the clock module #21023

Merged

Conversation

kapi-no
Copy link
Contributor

@kapi-no kapi-no commented Mar 19, 2025

Added the kernel uptime workaround to the clock module in the FMDN extension that is part of the Fast Pair library.

Applied the workaround for the kernel uptime persistence after a system reset. The FMDN clock module assumes that the kernel uptime starts from zero after the system reboot.

Activated the workaround only for devices from the nRF54L series that use the GRTC timer as the system clock source (the default configuration). For this configuration, the kernel uptime persists after a system reset if the reset reason is of a specific type, such as a software reset (for example, triggered by the sys_reboot API).

Ref: NCSDK-32268

The following items are planned as a follow-up PR:

  • changelog entry
  • known issue description for NCS 2.8 and NCS 2.9

@kapi-no kapi-no requested review from a team as code owners March 19, 2025 10:18
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Mar 19, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 19, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 4

Inputs:

Sources:

sdk-nrf: PR head: f878f9af22af2c41472accd3edd23602c6e1776d

more details

sdk-nrf:

PR head: f878f9af22af2c41472accd3edd23602c6e1776d
merge base: 4be6ae8b0d428bce03f585222c3402f5296a5a06
target head (main): 52966b0147c678857851ab2a2ab4f3c81e7d150c
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (2)
subsys
│  ├── bluetooth
│  │  ├── services
│  │  │  ├── fast_pair
│  │  │  │  ├── fmdn
│  │  │  │  │  ├── Kconfig
│  │  │  │  │  │ clock.c

Outputs:

Toolchain

Version: 4ffa2202d5
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:4ffa2202d5_e579f9fbe6

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister - Skipped: Skipping Build & Test as it succeeded in a previous run: 3
  • ✅ Integration tests
    • ✅ desktop52_verification - Skipped: Job was skipped as it succeeded in a previous run
    • ✅ test-fw-nrfconnect-ble_samples - Skipped: Job was skipped as it succeeded in a previous run
    • ✅ test-sdk-find-my - Skipped: Job was skipped as it succeeded in a previous run
    • ⚠️ test_ble_nrf_config
Disabled integration tests
    • doc-internal
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_cloud
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@kapi-no kapi-no force-pushed the fmdn_clock_nrf54l_uptime_workaround branch from 9c4583f to 3298145 Compare March 19, 2025 10:24
Copy link

You can find the documentation preview for this PR here.

Added the kernel uptime workaround to the clock module in the FMDN
extension that is part of the Fast Pair library.

Applied the workaround for the kernel uptime persistence after a system
reset. The FMDN clock module assumes that the kernel uptime starts from
zero after the system reboot.

Activated the workaround only for devices from the nRF54L series that
use the GRTC timer as the system clock source (the default
configuration). For this configuration, the kernel uptime persists
after a system reset if the reset reason is of a specific type, such as
a software reset (for example, triggered by the sys_reboot API).

Ref: NCSDK-32268

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
@kapi-no kapi-no force-pushed the fmdn_clock_nrf54l_uptime_workaround branch from 3298145 to f878f9a Compare March 19, 2025 16:31
@kapi-no kapi-no requested a review from MarekPieta March 19, 2025 16:33
@kapi-no kapi-no merged commit 190839b into nrfconnect:main Mar 20, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants