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:
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!