STMicroelectronics / STM32CubeF7

STM32Cube MCU Full Package for the STM32F7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
322 stars 191 forks source link

Nucleo F746ZG UART with DMA not working #65

Closed xRadx closed 2 years ago

xRadx commented 2 years ago

Describe the set-up

Describe the bug UART RX/TX works in blocking mode, but after enabling DMA, the program does not call HAL_UART_RxCpltCallback.

How To Reproduce Create project with nothing initialized. enable USART3 in async and activate DMA for TX/RX. Generate code. Create buffer and in User code 2 start UART receive with DMA (ie: HAL_UART_Receive_DMA(&huart3, buff, 4);

create PFP: void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_0); HAL_UART_Receive_DMA(&huart3, buff, 4); }

Upload code to the board.

After sending data >4 chars the LED should blink, but it does not.

ASELSTM commented 2 years ago

Hi @xRadx,

Would you please share your project in order to allow a better analysis of the problem.

With regards,

xRadx commented 2 years ago

Just .ioc and main.c would be sufficient?

xRadx commented 2 years ago

after update of CubeMX and soft package the problem is gone. issue for closing