Part Number: AM2634-Q1
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi TI Team,
I'm working with the uart_echo_dma_lld example, which functions correctly. However, when I attempt to add a second UART instance using DMA LLD in the same project, I encounter a redefinition error during compilation.
Error Details:
Description: redefinition of 'gUartDmaChCfg'
Resource: ti_drivers_open_close.c
Path: /UART_Test/Release/syscfg
Location: line 152
Type: C/C++ Problem
Root Cause: The SysConfig tool is generating two separate arrays with the identical name gUartDmaChCfg
UART_EdmaChConfig gUartDmaChCfg[CONFIG_UART_NUM_DMA_LLD_INSTANCES] =
{
{
.edmaRxChId = DMA_TRIG_XBAR_EDMA_MODULE_0,
.edmaTxChId = DMA_TRIG_XBAR_EDMA_MODULE_1,
},
};
UART_EdmaChConfig gUartDmaChCfg[CONFIG_UART_NUM_DMA_LLD_INSTANCES] =
{
{
.edmaRxChId = DMA_TRIG_XBAR_EDMA_MODULE_2,
.edmaTxChId = DMA_TRIG_XBAR_EDMA_MODULE_3,
},
};
1. Why is SysConfig generating two arrays with the same name instead of a single array with multiple instances?
Questions:
2. How can I configure SysConfig to either:
- Generate unique array names for each UART instance, or
- Combine both configurations into a single array with multiple elements?
Could you please provide guidance on the correct SysConfig configuration for multiple UART DMA LLD instances?
Thank you for your assistance.



