I have a problem configuring UART3 DMA when using Embedded wizard-generated code
this function will not be triggered when it receives a msg in RX.
can anyone tell me why that happened
the same code works well in STMCube IDE I did all other configurations in both
.
void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size)
{
if (huart->Instance == USART3)
{
EwPrint( "%%%%%%%%%%%%%%%%%%%%%%%\n" );
memcpy (MainBuf, RxBuf, Size);
HAL_UARTEx_ReceiveToIdle_DMA(&UART3_Handle, RxBuf, RxBuf_SIZE);
for(int i=0;i<RxBuf_SIZE;i++)
{
RxBuf[i]=0;
}
__HAL_DMA_DISABLE_IT(&hdma_usart3_rx, DMA_IT_HT);
}
}