-
Notifications
You must be signed in to change notification settings - Fork 2.1k
xtimer: usage in board_init() crashes #5928
Copy link
Copy link
Closed
Labels
Area: timersArea: timer subsystemsArea: timer subsystemsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
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().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: timersArea: timer subsystemsArea: timer subsystemsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)