Hello NXP Support,
I am working on the S32K324 with LPUART and DMA. I encountered an issue when enabling the transmit DMA request (BAUD.TDMAE bit).
Here is the function I am using, and Enable=TRUE:
/*!
* @brief Configures DMA requests.
*
* This function configures DMA requests for LPUART Transmitter.
*
*
*
@Param Base LPUART base pointer
*
@Param Enable Transmit DMA request configuration (enable:1 /disable: 0)
*/
static inline void Lpuart_Uart_Ip_SetTxDmaCmd(LPUART_Type * Base, boolean Enable)
{
Base->BAUD = (Base->BAUD & ~LPUART_BAUD_TDMAE_MASK) | ((Enable ? 1UL : 0UL) << LPUART_BAUD_TDMAE_SHIFT);
}
Observed behavior:
When I run the code step-by-step (single-step in debugger), it works correctly.
When I run the code in resume mode, the system fails (DMA transfer does not start)
Any guidance, best practices, or example sequence for enabling LPUART TX DMA would be greatly appreciated.
Thank you,
[Rick]