Hi,
I try to test LPUART_TransferGetReceiveCountEDMA() function with <lpuart_edma_transfer_m7> demo with RT1170 board.
I call LPUART_TransferGetReceiveCountEDMA() funciton with below code:
while (1)
{
/* If RX is idle and g_rxBuffer is empty, start to read data to g_rxBuffer. */
if ((!rxOnGoing) && rxBufferEmpty)
{
rxOnGoing = true;
LPUART_ReceiveEDMA(DEMO_LPUART, &g_lpuartEdmaHandle, &receiveXfer);
LPUART_TransferGetReceiveCountEDMA(DEMO_LPUART, &g_lpuartEdmaHandle, count_test);
}
It looks like that function does not work as expected.
When I set a breakpoint with this function and could find the count value changed.
Wish it helps.
Mike