LPC 17XX

Marcos Díaz marcos.diaz at tallertechnologies.com
Thu Jan 16 21:04:04 UTC 2014


we've continued investigating and we've seen that printf only sends
the first character to send, and continue sending the same character
repeatedly.. Has anyone any idea what could be the cause of this?

On Thu, Jan 16, 2014 at 3:35 PM, Marcos Díaz
<marcos.diaz at tallertechnologies.com> wrote:
> On Thu, Jan 16, 2014 at 2:50 PM, Joel Sherrill
> <joel.sherrill at oarcorp.com> wrote:
>> 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?
> yes it´s called
>>
>> Sometimes BSPs use interrupts for console I/O and hello can run and exit
>> before the I/O gets out.
>>>
>>> thanks in advance
>>>
>> --joel
>
>
>
> --
> ______________________________
>
>
> Marcos Díaz
>
> Software Engineer
>
>
> San Lorenzo 47, 3rd Floor, Office 5
>
> Córdoba, Argentina
>
>
> Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452
>
> Skype: markdiaz22



-- 
______________________________


Marcos Díaz

Software Engineer


San Lorenzo 47, 3rd Floor, Office 5

Córdoba, Argentina


Phone: +54 351 4217888 / +54 351 4218211/ +54 351 7617452

Skype: markdiaz22




More information about the devel mailing list