2023-08-02 08:50 AM
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
Solved! Go to Solution.
2023-08-02 10:14 AM
That's just how Eclipse works. Macros are messy.
See
https://stackoverflow.com/questions/34243496/eclipse-doesnt-show-parameter-names-for-macro-expansion
https://www.eclipse.org/forums/index.php/t/75693/
2023-08-02 10:14 AM
That's just how Eclipse works. Macros are messy.
See
https://stackoverflow.com/questions/34243496/eclipse-doesnt-show-parameter-names-for-macro-expansion
https://www.eclipse.org/forums/index.php/t/75693/
2023-08-02 12:19 PM
Thank you for your answer.
So there is no solution for this problem?
2023-08-02 01:07 PM
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.
2023-08-04 08:08 AM
Preprocessor definitions are problematic for all IDEs. The only IDE I know, where it actually works, is Visual Studio.
2023-08-04 11:23 AM
Thank you for your answers!