USART
Last updated
Last updated
A minimal UART setup can be achieved by setting up the Starter Project. This section will introduce some advanced concepts like interrupt and DMA transfer.
Note: sometimes CUBEIDE will put the
DMAinit()
code after theUART_init
code in the autogenerated section. If this happens, UART will not work!We need to manually move the
DMA_init()
piece to the top.
HAL_UARTEx_RxEventCallback