Hi Tim,
Not sure why you are not seeing the Rx side of the UART working.
I just did a test using KDS1.1.1 with KSDK1.0.0 and was able to make it work.
My test looks like:
while(1) {
GPIO_DRV_TogglePinOutput(kGpioLED2);
return_status = UART_DRV_SendData(BOARD_DEBUG_UART_INSTANCE, myTextString2, sizeof(myTextString2));
for(i=0;i<10000000;i++) { //DES ~2second delay loop
__NOP();
}
loop_count++;
if(loop_count > 4)
break;
}
return_status = UART_DRV_ReceiveDataBlocking(BOARD_DEBUG_UART_INSTANCE,
&myRxTextString1,
4, //DES hard coded that I want to receive 4 characters before un-blocking.
OSA_WAIT_FOREVER);
if(return_status != kStatus_UART_Success)
__BKPT(4); //DES break if error
myRxTextString1[4] = 0; //DES NULL terminate string
return_status = UART_DRV_SendData(BOARD_DEBUG_UART_INSTANCE, myRxTextString1, sizeof(myRxTextString1));
My Terminal output was:
This is the hello world of kds at 115200 baud
This is the hello world of kds at 115200 baud
This is the hello world of kds at 115200 baud
This is the hello world of kds at 115200 baud
This is the hello world of kds at 115200 baud
1234
Let me know if you get it working. If not I will try IAR tomorrow.
Regards,
David