Skip to content

RTC set/get time issue on NCS36510 #5308

Closed
@mprse

Description

@mprse

Description

  • Type: Bug
  • Priority: Major

Bug

Target
NCS36510

Toolchain:
GCC_ARM|ARM|IAR

mbed-cli version:
1.2.0

mbed-os sha:
47c890da8

Expected behavior
When RTC time value is set and read in sequence, then set value should be returned by the read function.
After setting RTC time we should have about 1 second to finish read operation. It is long enough to assume that the set value should be read.

Actual behavior
On NCS36510 board if we perform time set and get operations in sequence, then it looks like about 60 sec have elapsed between set and get operations.

Steps to reproduce

set_time(1256729737);
seconds = time(NULL);
TEST_ASSERT_EQUAL(1256729737, seconds);  // FAIL: Expected 1256729737 Was 1256729797

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions