2015-09-22 02:25 AM
I am trying to receive string from my PC then put it on the LCD. This my code :
char recieve[10];
while(__HAL_UART_GET_FLAG(&huart2,UART_FLAG_RXNE)==0){};
for(i=0;i<=9;i++)
{
HAL_UART_Receive(&huart2,(uint8_t *)&recieve[i],1,0xffff);
LCDString(&recieve[i]);
HAL_Delay(1000);
}
but LCD show 2 character only... ( if I send ''abcd'', LCD show ab only)....
anyone tell me about this problem and code for mypurpose please... thanks!!!
2015-09-22 11:26 AM
This works here. Also directly from the Cubetool.
2015-09-22 04:45 PM
You are very kind ! Thanks a lot !