On the right there is a panel with some paths.Ĭlick the tiny icon with a "plus" (+) in green in order to add a new Directory.įind the corresponding library directory, in our example we set it like that. Right click the project name badprog-completion in the Project Explorer > Properties > C/C++ Build > Settings > Tool Settings > C Compiler > Directories. C:\dev\mcu\atollic\stm32\badprog-completion \Drivers\STM32F30x_StdPeriph_Driver.C:\dev\mcu\atollic\stm32\badprog-completion \Drivers in order to have:.It's actually normal because the STM32F30x_StdPeriph_Driver library isn't linked into your project.Īdd this library into your project directory, for example: You have now the badprog-completion project in your Project Explorer panel.īut if you open the main.c file, you could see that there is no code completion.įor example if you try to write " ADC_" and use the keyboard shortcut CTRL + SPACE you shouldn't see the fonctions such as " ADC_AnalogWatchdog1SingleChannelConfig()" nor " ADC_StructInit()".
![atollic truestudio building with errors atollic truestudio building with errors](https://docs.protossoftware.de/minihil/latest/GettingStarted/images/WorkspaceIDE.png)
Let other values as default > Next > Next > Next > Finish. Of course, don't forget to set a name like badprog-completion. Creating a project with no code completionįile > New > C Project > Project type: > Executable > Embedded Project > Atollic ARM Tools. The board and the microcontroller are taken from the: STM32F3DISCOVERY webpage (but it's only for the example, take microcontroller you want). The IDE version is: Atollic TrueStudio for ARM 5.4.1 The project used as an example is a simple embedded project from the STM32F3 board (but of course, any project will be fine). If you have set correctly your project, and still have a completion problem, then I suggest to close and reopen it, it could solve this issue. Of course, this turorial admits that you have a project where the code completion is missing because you don't have the correct libraries.
![atollic truestudio building with errors atollic truestudio building with errors](http://www.emcu.it/STM32/Atollic/How_to_use_STM32_examples_in_ATOLLIC_TrueSTUDIO_Lite/fig12.png)
#ATOLLIC TRUESTUDIO BUILDING WITH ERRORS HOW TO#
We are going to see how to add the completion to the Atollic TrueStudio IDE. As Atollic is based on the Eclipse IDE, this tutorial is so also available for Eclipse.