2025-11-03 4:11 AM
I generated an STM32 project using STM32CubeMX for Keil (MDK-ARM).
In Keil, functions like HAL_GPIO_TogglePin() don’t show up in code completion (IntelliSense).
I found that in Project → Options for Target → C/C++ → Include Paths, the paths use / (for example ../Drivers/STM32F1xx_HAL_Driver/Inc) instead of \.
If I manually change / to \, code completion works — but STM32CubeMX changes them back after every code regeneration.
How can I permanently fix or configure STM32CubeMX to generate Windows-style include paths (\) for Keil projects?
2025-11-03 4:20 AM
@FAngelgel wrote:How can I permanently fix or configure STM32CubeMX to generate Windows-style include paths (\) for Keil projects?
The use of forward-slash as a "platform independent" path separator is well established in C practice.
Perhaps ask Keil how to configure their IDE so that it supports it?
https://community.arm.com/support-forums/f/keil-forum