I have been using the LPC1837 and LPC1769 on two projects, and have been able to print messages to the debug console using printf() but not vprintf().
An example statement I've tried to print is as follows:
UT_Printf( "\r\nFRAM: MFG: 0x%4.4X - %4d size %4d used", FRAM_MANUF_DATA_ADDR, FRAM_MANUF_DATA_MAX_LEN, mfgLen );
UT_Printf is as follows:
#ifdef SEMIHOST_ENABLED
va_list ap;
// Format the output based on pFormat for Semihosting terminal
va_start( ap, pFormat );
vprintf( pFormat, ap );
va_end( ap );
fflush(stdout);
#endif // SEMIHOST_CODE
If I replace vprintf with printf, I see the debug message displayed in the debug console, but with improper values. Can someone explain why vprintf isn't printing to the console?