Skip to content

How to use RTC on nrf54l15 micropython zephyr port #15

@jkorte-dev

Description

@jkorte-dev

Hi I tried to use the RTC on nrf54l15 board with the latest micropython build but setting the time throws an error:

>>> sys.implementation
(name='micropython', version=(1, 27, 0, 'preview'), _machine='zephyr-xiao_nrf54l15 with nrf54l15', _mpy=774)
>>> from RTC import RTC
>>> rtc = RTC()
>>> rtc.set_datetime((2025, 8, 31, 15, 55, 0))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: RTC device not initialized

When I pass an argument to the RTC I get an error "device not found"

rtc = RTC("nrf-rtc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: device nrf-rtc not found
```



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions