EMbitz
No autocompletion for registers - Printable Version

+- EMbitz (https://www.embitz.org/forum)
+-- Forum: EmBitz (https://www.embitz.org/forum/forum-1.html)
+--- Forum: Bug report (https://www.embitz.org/forum/forum-8.html)
+--- Thread: No autocompletion for registers (/thread-16.html)



No autocompletion for registers - Mink - 19-09-2020

No autocompletion for registers which are referenced by the pointer.

[Image: attachment.php?aid=9]


RE: No autocompletion for registers - Mink - 29-10-2020

By the way, the same problem when using HAL / LL libraries. But its reason is different.
The current version of EmBitz does not support conditional compilation and #defines in compiler settings.
This is what I am writing about. The code from the stm32h7xx.h file (it may be different depending on the microcontroller type).
Code:
#if defined(STM32H743xx)
  #include "stm32h743xx.h"
#elif defined(STM32H753xx)
  #include "stm32h753xx.h"
#elif defined(STM32H750xx)
  #include "stm32h750xx.h"
#elif defined(STM32H742xx)
  #include "stm32h742xx.h"
#elif defined(STM32H745xx)
  #include "stm32h745xx.h"
#elif defined(STM32H755xx)
  #include "stm32h755xx.h"
#elif defined(STM32H747xx)
  #include "stm32h747xx.h"
#elif defined(STM32H757xx)
  #include "stm32h757xx.h"
#elif defined(STM32H7B0xx)
  #include "stm32h7b0xx.h"
#elif defined(STM32H7B0xxQ)
  #include "stm32h7b0xxq.h"
#elif defined(STM32H7A3xx)
  #include "stm32h7a3xx.h"
#elif defined(STM32H7B3xx)
  #include "stm32h7b3xx.h"
#elif defined(STM32H7A3xxQ)
  #include "stm32h7a3xxq.h"
#elif defined(STM32H7B3xxQ)
  #include "stm32h7b3xxq.h"
#else
#error "Please select first the target STM32H7xx device used in your application (in stm32h7xx.h file)"
#endif
This #define is specified in the compiler settings.

[Image: attachment.php?aid=29]

As you can see, define STM32H750xx is declared in the compiler settings, but EmBitz does not search autocompletion data in the stm32h750xx.h file. Likewise with other HAL / LL files.
For the same reason, there is no search for the declaration and implementation of functions, structures, defines, etc.
This makes the development of the program very difficult.
Hopefully this will be fixed in the next version of EmBitz.


RE: No autocompletion for registers - embitz - 02-11-2020

Yeh, the code completion plugin is not from the same quality as Eclipse or Visual studio.
But changing this is a project on his own.