Hi,
I wrote a function that gets the data from UART and copy to memory, something is wrong here because i am sending test drom COMM operator and getting integer of the string which is sent from pc. Data is being copied to the memory in integer. For example, i am sending the char "B" from pc, MSP430FR5739 copies the data its memory 66 which is ascii of B.
void getUart(char * str)
{
unsigned char getRTCM = 0;
if(UCA0RXBUF) {
getRTCM = UCA0RXBUF;
itoa(getRTCM,str,10); //I know itoa gets its integer value, need to convert unsigned char to char?
memcpy(str+strlen(str), " F", strlen(" F"));
}