Thank you very much for the file provided. I included it, but if I use sprintf, I get following Error:
C:\msys\1.0\home\yagarto\newlib-build\arm-none-eabi\thumb\v7m\newlib\libc\reent/../../../../../../../newlib-1.20.0/newlib/libc/reent/sbrkr.c:58: undefined reference to `_sbrk'
May it be the same problem as here :
http://embdev.net/topic/177530 ?
I am not an Pro-Coder, so if I encounter such problems, I try to get the result with a workaround like you kindly have provided (If goolge doesn't help). But if you know a solution about sprintf, please let me know! It seems, the problem a complex Linker-Error. I'm using Eclipse/Yagarto/GCC.
BTW, is there any method how to chprintf() to a float USART like this:
Code: Select all
chprintf((BaseChannel *)&SD2, "%d", adc1_sample);
Unfortunately, theres a note:
Code: Select all
@note Floating point types are not implemented, this function is meant
* as a system utility and not a full implementation