UART with DMA stops working after integrating SPI with DMA

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART with DMA stops working after integrating SPI with DMA

ソリューションへジャンプ
229件の閲覧回数
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 解決策
199件の閲覧回数
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 返信
200件の閲覧回数
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 件の賞賛
返信