Skip to main content
Associate II
August 2, 2023
Solved

Issue with autocomplete

  • August 2, 2023
  • 5 replies
  • 3458 views

Hello everyone,

I use CubeIDE. I have a question about this IDE on the example of STM32F103xx.

File "stm32f1xx.h" contains macros: SET_BIT, CLEAR_BIT, READ_BIT, MODIFY_REG and others.

Why doesn't the CubeIDE provide hints when using macros?

For example: GPIOC-> (dropdown list will open BRR, BSRR, CRL, CRH and others).

But if you use the macros, for example: SET_BIT(GPIOC-> hints and suggestions not working).

Tell me, please, how to fix this?

Best Regards.

Symeon Zapsis

    This topic has been closed for replies.

    5 replies

    TDK
    TDKBest answer
    August 2, 2023
    "If you feel a post has answered your question, please click ""Accept as Solution""."
    symeonAuthor
    Associate II
    August 2, 2023

    Thank you for your answer.

    So there is no solution for this problem?

    TDK
    August 2, 2023

    Given that it was reported 14 years ago and hasn't changed, I do not see it changing in the future.

    You can report it to the Eclipse team again, but unlikely ST is going to rewrite that part of the underlying Eclipse framework.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Piranha
    Principal III
    August 4, 2023

    Preprocessor definitions are problematic for all IDEs. The only IDE I know, where it actually works, is Visual Studio.

    symeonAuthor
    Associate II
    August 4, 2023

    Thank you for your answers!