> All prints are done by calling ee_printf. If you do not have printf,
> you need to implement something that can print.
OK. I hoped you would have done that.
> Just as an example if you have sprintf.
> ee_printf(char *fmt, ...) {
> char buf[128];
> va_start( args, fmt );
> vsprintf(buf, fmt, args );
> va_end( args );
> while (*buf) uart_send_character(*buf);
>
> }
Assuming you can pull in sprintf without getting into library
headaches.
> It seems like most embedded kits actually include support for printf.
> Printf at the end of the day resolves to a putc call, which can easily
> be implemented via UART.
> Could you give details of the compiler you are using and settings?
The CodeSourcery G++ Lite for Power Architecture/Linux, which I have
little idea on how to extend to include a custom putc() for a bare-
metal simulated target. I use this compiler with no C includes at all
for my bare-metal targets usually, so I just wanted to understand the
landscape.
> Perhaps you simply need to implement the putc() call to get printf
> support for your platform?
That might well be the case, but it was good to know about ee_printf,
which I was looking for in the source code.
/jakob