-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xtimer_usleep wrong delay time #10073
Comments
@leandrolanzieri This and other issues can be solve with #8990 (WIP, waiting for other PRs) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Seems to me this issue is still present and still annoying... I also just verified that the same seems to be true when using |
With xtimer on its way out and ztimer being used instead now every, I'd say this is a wontfix. If anyone disagrees, please reopen. |
Are we sure this isn't an issue with |
Description
While doing some tests on #10011, which uses a 1-wire interface I found out that the
xtimer_usleep
is introducing an extra delay.I did some measurements by toggling a GPIO. Here is the value passed to the function vs. the actual delay measured.
I also confirmed that this is not a delay introduced by the toggle of the pin by adding multiple calls of the xtimer_usleep function and each of them would add this extra time.
Steps to reproduce the issue
Try toggling a GPIO pin and using the
xtimer_usleep
function to wait:Expected results
Should see the pin toggled each 10us.
Actual results
Pin toggles each 21us (on nucleo-152re).
Versions
Installed compiler toolchains
native gcc: gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
arm-none-eabi-gcc: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
avr-gcc: missing
mips-mti-elf-gcc: missing
msp430-gcc: missing
riscv-none-embed-gcc: missing
clang: clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Installed compiler libs
arm-none-eabi-newlib: "2.5.0"
mips-mti-elf-newlib: missing
riscv-none-embed-newlib: missing
avr-libc: missing (missing)
Installed development tools
cmake: cmake version 3.10.2
cppcheck: missing
doxygen: 1.8.13
flake8: missing
git: git version 2.17.1
coccinelle: missing
The text was updated successfully, but these errors were encountered: