On 1/16/2014 11:48 AM, Marcos Díaz wrote:
Hi, we are adapting the lpc 17xx bsp to one mbed lpc1768, currently we could make the hello example to work but only with printk, not with printf, so, I wanted to know, what's the difference between those two functions, where should I look in order to see what's wrong? debugging i've seen that the program compiled with newlib isn't calling printf, but it calls _puts, is that ok or there is something wrong?
gcc optimizes calls to printf with fixed strings (e.g. no formatting parameters)
into calls to puts. Is the console_write() method being called in the BSP? Sometimes BSPs use interrupts for console I/O and hello can run and exit before the I/O gets out.
thanks in advance
--joel _______________________________________________ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listinfo/rtems-devel