Skip to content

xtimer: usage in board_init() crashes #5928

@basilfx

Description

@basilfx

Initializing and using xtimer before the kernel has initialized leads to a crash (no output, corrupted stack in gdb). I verified this for the Thunderboard Sense (EFM32) target and Seeeduino Arch Pro (LPC1768). I use it exactly the same as the Mulle board (#4133).

The problem does not happen when the delay is less than the backoff. So my workaround for sleeping 1ms is sleeping 100 times 10 µs.

Use case: The Thunderboard Sense has a I2C GPIO expander that needs 1ms of wakeup time. I address this GPIO expander to enable the sensors so they get initialized before auto_init().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: timersArea: timer subsystemsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions