2020-05-20 12:30 AM
I am on a project that I generated with CubeMX 4.25.0.RC2 for STM32F303VCT6 and it worked perfectley until I regenerated the code with CubeMX 5.6.1-RC1.
First found that USART DMA doesn't work. I found some differences in generated stm32f3xx_hal_uart and stm32f3xx_hal_uart_ex files.
I used the same code for the old and then new version expecting it would work as it did before.
MX_USART1_UART_Init();
...
HAL_DMA_Start(&hdma_usart1_rx, (uint32_t)&huart1.Instance->RDR, (uint32_t)USART_PCReceiveBuffer, sizeof(USART_PCReceiveBuffer));
HAL_UART_Receive_DMA(&huart1, USART_PCReceiveBuffer, sizeof(USART_PCReceiveBuffer));
You can see the different results right after this code in huart1 in the attached images.
Is there anything I should change to use UART DMA and CubeMX5 ?
B.R.
Peter
2020-11-24 01:11 AM
Dear @PJera.1 ,
Please use the last available version of STM32CubeMX.
Best regards,
Houssem