UART with DMA stops working after integrating SPI with DMA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART with DMA stops working after integrating SPI with DMA

Jump to solution
231 Views
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!

Tags (2)
0 Kudos
Reply
1 Solution
201 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
202 Views
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 Kudos
Reply