Tool/software: Code Composer Studio
I just wish to receive an integer from serial port, add 2 to the integer and send it back through serial communication
Here is my sciNotification code,
void sciNotification(sciBASE_t *sci , unsigned flags)
{
dat = dat + 2;
sciSend(sci,sizeof(dat),(int*)&(dat));
sciReceive(sci,sizeof(dat),(int*)&dat);
}
When i use CCS's inbuilt terminal to send a number on serial transfer, the output result is inverted, ie if I send 1111 as input through terminal, output is 3111, also i am not able to send integers with undefined number of digits in them. I was following this TI tutorial however its only deals with character communication over serial, not integers.