My next project uses a Zilog Z8F08 so I'm familiarizing myself with a Z8F08200100KIT evaluation kit. The kit includes the ZDS II development system, consisting of:
Z8 Encore! F08X IDE (03071001 ) ZiLOG Z8 Encore! Macro Assembler Version 1.03 Z8 Encore! ANSI C Compiler Version 1.11 Z8 Encore! Linker/Locator Version 4.09 IEEE-695 Object Librarian Version 3.03
I find that the ledblink demo program outputs printfs that don't include conversion characters without problem but hangs in an infinite loop when conversion characters are used. For example, this works just fine:
printf("Led Lights Green\n");
This, taken from the printf help entry, hangs:
int i=10; printf("This is %d",i);
Stepping through the printf, I find that the infinite loop occurs in the function:
int _u_print(char _PTR_ dest,char _PTR_ fmt,va_list argp)
I lack the time and desire to debug this library function and find it difficult to beleive that it is just plain faulty. It seems far more likely that I have overlooked something. Has anyone else experienced this?