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.

TMDSIDK437X: UART 1 test for idkam437x

Part Number: TMDSIDK437X

Hello,

 

I am trying to test UART on IDK437x board.

I have created UART_BasicExample_idkAM437x_armTestProject.

And as per the it UART0 is working fine.

UART0:

RX: K25

TX: J24

 

Now I want to test UART1.

AM437X_PROFI_TXD

AM437X_PROFI_RXD

UART1:

RX: K21

TX: L21

To do that I have only changed the instance 1 from 0.

static void UART_initConfig(bool dmaMode)

{

    UART_HwAttrs uart_cfg;

    uartTestInstance = 1;/*For testing UART 1*/

    /* Get the default UART init configurations */

    UART_socGetInitCfg(uartTestInstance, &uart_cfg);

 

int32_t UART_socGetInitCfg(uint32_t index, UART_HwAttrs *cfg)

{

    int32_t ret = 0;

 

    if (index < CSL_UART_PER_CNT_AM437X)

    {

        *cfg = uartInitCfg[index];

    }

    else

    {

        ret = -1;

    }

 

UART_HwAttrs uartInitCfg[CSL_UART_PER_CNT_AM437X] =

{

    {

        SOC_UART0_REG,

        104,

        0,

        48000000U,

        CSL_EDMA3_CHA_UART0_RX,

        CSL_EDMA3_CHA_UART0_TX,

        0,

        0,

        0,

        0,

        0,

        NULL,

        UART_RXTRIGLVL_8,

        UART_TXTRIGLVL_56,

        TRUE, /* default DMA mode */

        FALSE, /* Loopback disabled by default */

             TRUE, /* Interrupt enabled by default */

        UART16x_OPER_MODE, /* operMode, 16x over sampling mode by default */

    },

    {

        SOC_UART1_REG,

        105,

        0,

        48000000U,

        CSL_EDMA3_CHA_UART1_RX,

        CSL_EDMA3_CHA_UART1_TX,

        0,

        0,

        0,

        0,

        0,

        NULL,

        UART_RXTRIGLVL_8,

        UART_TXTRIGLVL_56,

        TRUE, /* default DMA mode */

        FALSE, /* Loopback disabled by default */

             TRUE, /* Interrupt enabled by default */

        UART16x_OPER_MODE,

    },

 

 

Based on that it will initiate the UART1.

But it is not working as expected.

Kindly guide.

Regards,

Vrund