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!
解決済! 解決策の投稿を見る。
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
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