Using kinetis Design Studio ,Processor Expert , how to do serial communication from LabWindows ?
I am creating a GUI in LabWindows which will be sending & receiving characters via the serial port with Kinetis K10 processor. Unfortunately unable to do so. could anyone please suggest a way to solve the issue ?
Thanks in advance.
Kinetis Processor Expert Code :
/* this is used when receiving data , currently commented out*********/
//volatile bool DataReceivedFlg = FALSE;
//unsigned char InpData;
/******** to send a character**********/
unsigned char OutData = "1";
MySerialPtr = AS1_Init(NULL);
Error = AS1_SendBlock(MySerialPtr, OutData, sizeof(OutData));
bytes_read = ComRd(comport,buf,2);
CopyString (tbox_read_data, 0, buf, 0, bytes_read);
SetCtrlVal (panelHandle, PANEL_TBOX_READ, tbox_read_data);
every time "buf" is empty .