printf

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,

what I have to do to activate stdio printf() function with Dave3?
What are the low level functions behind printf(): putchar(), getc() ...?
Is there any support for creation of printf low level function using e.g. UART_001 - app?

Thanks for support.

Steffen
0 Likes
1 Reply
oreste
Employee
Employee
Welcome! 50 replies posted 25 replies posted
Steffen wrote:
Hello,

what I have to do to activate stdio printf() function with Dave3?
What are the low level functions behind printf(): putchar(), getc() ...?
Is there any support for creation of printf low level function using e.g. UART_001 - app?

Thanks for support.

Steffen


Hi
in Dave it is used newlib provided by ARM.
You have to implement int _write(int file, char *ptr, int len) and int _read(int file, char *ptr, int len).
You can also give a look here http://balau82.wordpress.com/2010/12/16/using-newlib-in-arm-bare-metal-programs/

Best Regards
Oreste
0 Likes