Skip to main content
PKuma.51
Associate
Apr 26, 2020 3:55 PM UTC
Question

UART driver missing in STM32CubeIDE.

I have generated my code using CubeMx tool in STM32CubeIDE. I find the stm32f4xx_hal_uart.c missing from the project. But when I generated the code by enabling the uart as asynchronous mode the second time, the uart appears in the driver folder. Why uart is missing?

0693W000000WSkkQAG.png

This topic has been closed for replies.

2 replies

berendi
Principal
Apr 26, 2020 4:04 PM UTC

It has copied the necessary drivers for the configured peripherals only. There must be some checkbox to change this behaviour in CubeMX.

The intended audience of the CubeMX code generator is apparently not smart enough to write code to configure a UART.

PKuma.51
PKuma.51Author
Associate
May 10, 2020 1:43 PM UTC

Thanks for the reply. Can you help me where can I find this in the settings?