[riot-devel] xtimer problem

Kaspar Schleiser kaspar at schleiser.de
Thu Apr 7 17:47:59 CEST 2016


On 04/07/2016 05:39 PM, Theodore Kotsonis wrote:
> If I remove the line with substraction it run without any problem.
> I am sure that is stack overflow but I don't know how to fix it.
> Can I avoid xtimer_now method? Is there other xtimer counter for this purpose?

xtimer_now() is very likely not the problem, printf might be.

You could try replacing printf with print_u32_dec() from the fmt module.

1. #include <fmt.h>
2. replace "printf("%u\n", variable);" with "print_u32_dec(variable);
3. add "USEMODULE += fmt" to Makefile


More information about the devel mailing list