UART mode enable missing
- June 6, 2025
- 2 replies
- 466 views
Hi
This issue was reported a long time ago but I'm seeing something similar again now.
In my case it's the definition HAL_UART_MODE_ENABLED for my STM32H755 project, this define being put into stm32h7xx_conf.h after each code re-generation.
My project began as one targeting the H755 Nucleo and at that point there was not problem. The problem arose after migrating to my custom H755 PCB, at which point I removed the Nucleo BSP stuff in MX (CubeIDE MX perspective); I also removed some other unwanted things such as Ethernet support (& LWIP)
I have no UART/USART in my project and can't think of any reason why the UART definition should be getting into my HAL config. Viewing HAL modules in the MX Project settings does not show any peripherals other than those I'm expecting.
My .ioc is attached in case it's helpful.
Thanks
Edit: moved from stm32h5xx_hal_usart.h is missing

