Hi,
I found the Projekt attached below in the forums. It works well for the S32k144 EVB, but if i want to use it on a S32k146, it don't work.
I need to send variable length per DMA on UART1, and I wrote following function, which works fine for S32k144 but not on S32k146 what is wrong?:
void LPUART1_send_DMA(uint8_t *data, uint16_t len)
{
DMA->TCD[1].CSR &= ~DMA_TCD_CSR_DONE_MASK;
DMA->TCD[1].SADDR = (uint32_t)data;
DMA->TCD[1].CITER.ELINKNO = len;
DMA->TCD[1].BITER.ELINKNO = len;
DMA->SERQ = 1;
}
I hope anyone can help me
Best regards
Sandra