2018-02-25 12:27 PM
Hi,
i have a ringbuffer, for example an 2d Array of fixed uint8_t Bytes. It's possible that the chip at self or triggered in the Callback can update the DMA buffer address????
For example:
#define lines 8
#define bufferlinesize 36
uint8_t rxBuffer[lines][bufferlinesize]
unsigned nItrWrite=0;
.
.
.
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
nItrWrite= (nItrWrite+ 1) % lines;
huart->pRxBuffPtr = rxBuffer[nItrWriteRing];
}�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?
#uart-dma #stm32-l4
2018-02-26 12:20 PM
Hello
bd
,once you have RxColtCallback event, you have to start DMA read again.
HAL drivers currently don't support circular receive data over DMA.
Best regards,
Tilen
2018-02-27 12:45 AM
Hi,
Tilen MAJERLE
Why
HAL drivers currently don't support circular receive data over DMA?
2018-02-27 01:32 AM
i have a ringbuffer, for example an 2d Array
Why would a Ring buffer be a 2D array ??