Hi,
I added the polling of UART_SpiUartGetRxBufferSize() API.
The size is always 0 ...
See below or the attached bundle
Regards,
Marlene
#include <project.h>
/*******************************************************************************
* Function Name: main
********************************************************************************
* Summary:
* The main function performs the following actions:
* 1. Sets up UART component.
* 2. UART sends text header into the serial terminal.
* 3. UART waits for the characters to send them back to the serial terminal.
*
* Parameters:
* None
*
* Return:
* None
*
*******************************************************************************/
int main()
{
uint32 ch_s = 0x00000000000000;
uint32 ch_r = 0x00000000000000;
/* Start SCB (UART mode) operation */
UART_Start();
for (;;)
{
/* Get received character or zero if nothing has been received yet */
UART_SpiUartWriteTxData(++ch_s);
while(ch_r!=ch_s){
while(!UART_SpiUartGetRxBufferSize()) ;
ch_r = UART_SpiUartReadRxData();}
ch_r =0;
}
}
/* [] END OF FILE */
Here is a program for your chip that does full duplex. Also read the PDF in the file.