This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR1642: About the uart for use by MSS_UARTB_RX

Part Number: AWR1642

Hi,

I want to use the MSS_UARTB_RX and I coding below.

---------------------------------------------------------------------

---------------------------------------------------------------------

---------------------------------------------------------------------


Pinmux_Set_OverrideCtrl(SOC_XWR16XX_PINP4_PADBB, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
Pinmux_Set_FuncSel(SOC_XWR16XX_PINP4_PADBB, SOC_XWR16XX_PINP4_PADBB_MSS_UARTB_RX);

/* Setup the default UART Parameters */
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.clockFrequency = MSS_SYS_VCLK;
uartParams.baudRate = 115200;
uartParams.isPinMuxDone = 1U;

/* Open the Logging UART Instance: */
gSrrMSSMCB.loggingUartHandle = UART_open(1, &uartParams);
if (gSrrMSSMCB.loggingUartHandle == NULL)
{
System_printf("Error: MMWDemoMSS Unable to open the Logging UART Instance\n");
return;
}

#define BUF_SIZE (512)

char buf[BUF_SIZE] = {0};

if (UART_readPolling(gSrrMSSMCB.loggingUartHandle, (uint8_t *)buf, sizeof(buf)))
{
UART_writePolling(gSrrMSSMCB.loggingUartHandle, (uint8_t *)buf, strlen(buf));
}
else
{}

---------------------------------------------------------------------

---------------------------------------------------------------------

---------------------------------------------------------------------

It don't work and I don't know how to slove it.

Can you support with me?

Thanks