cancel
Showing results for 
Search instead for 
Did you mean: 

UART driver missing in STM32CubeIDE.

PKuma.51
Associate II

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

2 REPLIES 2
berendi
Principal

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
Associate II

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