Tool/software: TI C/C++ Compiler
using RTOS/tda2x,I want use uart1 and uart2 work together in IPU1,but I have some problem with utils_uart.c, as following:
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.
Tool/software: TI C/C++ Compiler
using RTOS/tda2x,I want use uart1 and uart2 work together in IPU1,but I have some problem with utils_uart.c, as following:
Hi,
You can route the UART1 interrupt to another interrupt number through the corresponding crossbar instance.
Define interrupt source as UART1_IRQ,
Define another unused interrupt number in your system, say 61.
Check the APIs which are using these defines for UART2 and call the same APIs again with the UART1 specific macros.
Regards,
Prasad
AS FOLLOWIING:
Hi,
You need to enable two separate interrupts for UART1 and UART2.
PDK has an example for UART in interrupt mode for UART1 at below location which you can refer for details.
<pdk_install_dir>\packages\ti\csl\example\uart\uart_intr\main.c
Also are you able to get single instance at a time to work for both UART1 and UART2?
I think this should be first step to get started before trying for both together.
Regards,
Prasad
I have solved the problem。the uart4 work mode is right,and UART4_IRQ is only suitable with CSL_XBAR_INST_IPU1_IRQ_61,the other intr num does not work.