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.

TDA4VM: How to use Uart3 MCU in Mcu domain

Part Number: TDA4VM

Hello,I want to use Uart3 in main domain(baudRate is 460800,use interrupt mode). Is it possible to use it in the following way?

1、Set Pinmux V28 UART3_RXD,V29 UART3_TXD

2、use UART_socSetInitCfg()function set  operMode is UART13x_OPER_MODE,set enableInterrupt is TRUE ,baseAddr is (uint32_t)CSL_UART0_BASE + (0x10000U * 3),intNum is CSLR_R5FSS0_INTROUTER0_IN_UART3_USART_IRQ_0。

Sample Code :

UART_init();
UART_socGetInitCfg(3, &uart_cfg);
uart_cfg.edmaHandle = NULL;
uart_cfg.dmaMode = FALSE;
uart_cfg.operMode = UART13x_OPER_MODE;
uart_cfg.loopback = FALSE;
uart_cfg.enableInterrupt = TRUE;
uart_cfg.frequency = UART_INPUT_CLK_48M;
uart_cfg.baseAddr = (uint32_t)CSL_UART0_BASE + (0x10000U * 3);
uart_cfg.intNum = CSLR_R5FSS0_INTROUTER0_IN_UART3_USART_IRQ_0; 
UART_socSetInitCfg(uartTestInstance, &uart_cfg);

3、set Params:set baudRate 460800, set writeMode and readMode is  UART_MODE_CALLBACK, set  writeCallback and readCallback function

Sample Code:

UART_Params_init(&uartParams);
uartParams.baudRate = 460800;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.writeCallback = UART_Write_Callback_test;
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.readCallback = UART_Read_Callback_test;

4、use UART_open(3, &uartParams);,then if fifo reach tx/rx Level, write/read callback function is be trigered.

5、Please help answer one more question, Has the Fifo level interrupt been enabled according to the above configuration process. If not, please help provide the activation method. Thank you

zt