STM32H7 UART (DMA with IDLE line) unknown length problem
Hello,
I am trying to use UART with DMA with IDLE line for unkown length data reception and I am getting the following error:
request for member 'NDTR' in something not a structure or union main.c
I coded a couple of years ago a HAL_UART_RxCpltCallback() function that needs NDTR to calculate the buffer position.
rxBufPos = UART_BUFFER_SIZE - (uint16_t) huart->hdmarx->Instance->NDTR;
It works works on STM32F4 series microcontrollers but it does not work on STM32H7 series microcontrollers.
I have compared F4 and H7 DMA_HandleTypeDef struct and I have found that F4 *Instance type is DMA_Stream_TypeDef and H7 *Instance type is void.
