lpcware

LPC1769 printf

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Lithium on Thu May 12 06:43:42 MST 2011
Hi forum users,

I am trying to send data through uart port 0, i am also using the function printf.
The communication to my computers works fine.
I added this function in my main file:

int __write (int iFileHandle, uint8_t *pcBuffer, uint8_t iLength)
{
//this function is writing the printf buffer to uart
UARTSend(0,pcBuffer,iLength);
return iLength;
}


I have got one problem.
I am sending this:

printf("Setup started \n");

I receive this:

~.(...6.Setup started


I think something is going wrong because i got those trange characters: ~.(...6.
I made a search but could not find any information related to my problem.
Could someone help me please?

Lithium

Outcomes