STM32Cube AI Studio fails to generate UART code despite UART being enabled
I installed the latest STM32Cube AI Studio along with STM32CubeMX 6.16.0, STM32CubeProgrammer 2.21.0, and ST Edge AI Core.
CubeMX has STM32CubeU5 Firmware Package V1.8.0 / 04-June-2025 installed.
All attempts to run a neural network end with:
../../Middlewares/ST/AI/Misc/Inc/ai_device_adaptor.h:624:8: error: unknown type name 'UART_HandleTypeDef'
When AI Studio generates a project from any neural network, it disables the UART in stm32u5xx_hal_conf.h.
Even if I uncomment the #define of HAL_UART_MODULE_ENABLED, the app cannot be compiled because the stm32u5xx_hal_uart.h header was never generated.
If I click on the little gear at the upper right in Cube AI Studio, it shows me that the COM5 LPUART1 is configured.
So I'm stuck -- Cube AI Studio cannot be used with the stm32u5xx devices.
Any advice?
Thanks!
--Mike
