UART with DMA stops working after integrating SPI with DMA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART with DMA stops working after integrating SPI with DMA

跳至解决方案
269 次查看
DiaDev
Contributor III

Platform: S32DS 3.5.14 RTD3.0.0
Board: Mr-CANHUBK344
Hi ,

I'm working on an S32K344 project where both UART and SPI are configured to use DMA.
Individually, both peripherals work fine:

  • UART with DMA works perfectly in isolation.

  • SPI with DMA also works correctly on its own.

However, when I integrate both into my full project, UART with DMA stops working — no data is transmitted or received. SPI with DMA continues to function as expected.

/**
* @brief Initialize DMA and DMA MUX
*/
static void dma_init() {
// Initialize the DMA controller with predefined configuration
Dma_Ip_Init(&Dma_Ip_xDmaInitPB);
Dma_Mux_Ip_Init(&Dma_Mux_Config);
}

/**
* @brief Initialize SPI peripheral in slave mode with DMA
*/
void init() {
dma_init();
Lpspi_Ip_Init(&Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_Slave_Instance_1);
Lpspi_Ip_UpdateTransferMode(SLAVE_EXTERNAL_DEVICE.Instance, LPSPI_IP_INTERRUPT);
Lpuart_Uart_Ip_Init(UART_CHANNEL0, &Lpuart_Uart_Ip_xHwConfigPB_0);

}

Any advice or troubleshooting suggestions are very welcome!

Thanks in advance!

标记 (2)
0 项奖励
回复
1 解答
239 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @DiaDev 

To help us better understand and verify the behavior you have described, could you please share the specific DMA, SPI, and UART configurations? This will allow us to better analyze the situation and rule out a potential root cause related to a missing or incorrect configuration.

 

BR, VaneB

在原帖中查看解决方案

0 项奖励
回复
1 回复
240 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @DiaDev 

To help us better understand and verify the behavior you have described, could you please share the specific DMA, SPI, and UART configurations? This will allow us to better analyze the situation and rule out a potential root cause related to a missing or incorrect configuration.

 

BR, VaneB

0 项奖励
回复