Skip to content

Added time keeping for NRF52 across resets#2704

Open
IoTThinks wants to merge 1 commit into
meshcore-dev:devfrom
IoTThinks:MCdev-Added-TimeKeeping-across-resets-for-nr52-20260606
Open

Added time keeping for NRF52 across resets#2704
IoTThinks wants to merge 1 commit into
meshcore-dev:devfrom
IoTThinks:MCdev-Added-TimeKeeping-across-resets-for-nr52-20260606

Conversation

@IoTThinks
Copy link
Copy Markdown
Contributor

Hi all,
This is to keep time for NRF52 especially NRF52 repeaters across reboot and reset.
So we can still receive adverts after reset due to reboot or software faults.
I "cut" 8 bytes from RAM to make persistent RAM to store 2 uint32_t for time keeping.

This will have same behaviour as this PR for ESP32: #1896

Test cases:

  1. Sync time
  2. Check time
  3. Reboot by CLI
  4. Login back to see if time is kept.

The default time is 1 Mar 2026 as same as #1896.

I have tested repeaters and BLE companions fine for RAK4631, Heltec T114, Heltec T096 and Xiao NRF52.
I added boards/nrf52840_s140_v6.ld for some of my comon built NRF52 boards too.
Please help to do more tests with your NRF52 boards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant