Skip to content

Timer jumps after 35 minutes on K64F #1842

Closed
@marcuschangarm

Description

@marcuschangarm

When running the following program on a K64F, the timer value jumps drastically after 35 minutes.

#include "mbed.h"
#include "rtos.h"

Timer tick;

int main()
{
    tick.start();

    for(;;)
    {
        printf("%lu\r\n", tick.read_ms());
        wait(1);
    }
}

Output after 35 minutes:

2144601
2145608
2146615
4292819952
4292820963
4292821973

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