Issue with autocomplete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-02 8: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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-02 12:19 PM
Thank you for your answer.
So there is no solution for this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-02 1: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-04 8:08 AM
Preprocessor definitions are problematic for all IDEs. The only IDE I know, where it actually works, is Visual Studio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-08-04 11:23 AM
Thank you for your answers!
