2026-04-09 4:42 AM
Hello guys,
I started a project using STM32C552RET6 and STM32CubeIDE.
When I use the autocomplete feature to select a HAL function, I can’t find it. I have to type the function manually.
Does anyone know how I can fix this problem?
Thanks for your help.
2026-04-09 4:52 AM - edited 2026-04-09 4:58 AM
Welcome to the forum.
Please see How to write your question to maximize your chances to find a solution for best results.
In particular, what version of CubeIDE are you using?
@MatheusNifocci77 wrote:I started a project using STM32C552RET6 and STM32CubeIDE.
How, exactly, did you start this project?
For C5, you need to use STM32CubeMX2
PS:
Note that C5 uses HAL2
How to create a new project with STM32CubeMX2
How to get started with STM32C5 microcontrollers
How to use the HAL2 structure and project format
More Knowledge Base articles related to STM32CubeMX2
2026-04-09 5:52 AM
Autocomplete is clearly working in your screenshot.
What function are you looking for?
2026-04-09 6:08 AM
2026-04-09 6:09 AM
HAL_GPIO_ReadPin for example.
2026-04-09 9:32 AM - edited 2026-04-10 5:57 AM
Hello @MatheusNifocci77
Thank you for bringing our attention to this issue,
The behavior will be escalated internally to the dedicated team for further investigation (Ticket #0061592 This is an internal tracking number and is not accessible or usable by customers). I will keep you informed about any updates.
BR, Souhaib
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-04-09 12:01 PM
It could be the GPIO driver is not enabled. I've ran into the same problem.
I would check to see if the stm32c5xx_hal_gpio.c file is grayed out (not enabled).
I'm not sure if CubeMX2 is supposed to add defines/symbols automatically or if it's a bug, but I have to enable each peripheral even though i enabled them in CubeMX2.
For instance, stm32c5xx_hal_gpio.c HAL driver, it's all grayed out. The right column shows all the functions have a slash.
When I add "GPIOC" which is a one of the symbols, it enables the whole file. I have to add symbols for other peripherals as well.
You can see it's not grayed out and in the right column, the slashes are gone.
Now I am able to type a few characters and hit CTRL + Space to bring up a list of available functions.