Hello collegues,
I have following hw setup in my project .
MSP432 is communicating through 2 UARTS UART0 and UART2 to other components.
One of the scenario MSP has to ask through UATRT0 and answer through UART2.
So far, is clear. I try to do this with DMA, exactly with DMA scatter gather.
My first attempt fails..
I define an array DMA control table.. this way
DMA_ControlTable configExchange[2] =
{
DMA_TaskStructEntry(HEADER_LENGTH + CONFIG_PAYLOAD_LENGTH, UDMA_SIZE_8,
UDMA_SRC_INC_8, txBuff,
UDMA_DST_INC_NONE, &EUSCI_A0->TXBUF,
UDMA_ARB_1, UDMA_MODE_BASIC),
DMA_TaskStructEntry(HEADER_LENGTH + CONFIG_PAYLOAD_LENGTH, UDMA_SIZE_8,
UDMA_SRC_INC_NONE, &EUSCI_A2->RXBUF,
UDMA_DST_INC_8, rxBuff,
UDMA_ARB_1, UDMA_MODE_BASIC)
};
And how must I set DMA gath scatt. ? What DMA channel I have to assign?
DMA_setChannelScatterGather(/*DMA_CHANNEL*/,1,(void*),configExchange,1);
Rest of DMA setting is obvious and I have no question there. Only this one above..
Thanks

