Hi,
You may need to implement the printf function, or 'stub' it
out, e.g. this is the prontf function that I use, I make a back-up and
modify the existing 'printf.c' file which is in one of
the IAR directories (INC I think):
static void put_one_char(char c, void *dummy)
{
tx_byte(PRINT_PORT,c);
/* or comment the above line out if you are using c-spy */
} /* Warning on this line OK (unused 'dummy') */
int printf (const char *format, ...) /* Our main entry */
{
va_list ap;
int nr_of_chars;
va_start (ap, format); /* Variable argument begin */
nr_of_chars = _formatted_write (format, put_one_char, (void *) 0, ap);
va_end (ap); /* Variable argument end */
return (nr_of_chars); /* According to ANSI */
}