Hi Paul,
it is our intention to allow newcomers a very quick end easy way how to build Embedded Wizard projects and how to get it run on a target platform. We decided to do this with the GNU make approach, since there are only few dependencies (ARM tool chain, STM32Cube package and STM Link) and no specific issues concerning the different IDEs available for the STM32 devices.
Providing some simple Embedded Wizard projects newcomers have the first applications up and running on the STM32 target after a few minutes.
Nevertheless, Embedded Wizard generates ANSI C code, that can be integrated to each STM32 IDE.
In case of Atollic TrueSTUDIO it is a good starting point to build an Embedded C Project for a specific STM32 EVAL or DISCOVERY board as described in the Quick Start Guide of Atollic TrueSTUDIO.
Based on this simple application the Embedded Wizard code and libs can be added.
Following steps have to be done:
- add the STM32Cube_FW_Fx folder as linked folder to the project
* Right click to the root object in Project Explorer -> New.. -> Folder
* Enter a folder name (e. g. STM32Cube_FW_F4)
* Press the 'Advanced>>' Button and select 'Link to alternative location'
* Browse to your STM32Cube_FW_Fx folder
* After Pressing Finish, the Linked Folder will be added to the project
- Exclude all the unneeded stuff from from the build
(e. g. right click one or more Folders or single files within the
Linked Folder in Project Explorer -> Resource Configurations
-> Exclude from build -> mark one or more configurations)
- add the complete Embedded Wizard Build Enviroment to the project
(either copy the Embedded Wizard Build Enviroment to your workspace
or add the Embedded Wizard Build Enviroment as Linked Folder similar
to the STM32Cube package)
- Exclude the unneeded examples and color formats (/PlatformPackage)
from the build
(e. g. right click on RGB888 below PlatformPackage in Project Explorer
-> Resource Configurations -> Exclude from build)
- add the needed include paths and defines according to the delivered
makefiles
(Project -> Properties, Open C/C++Build Folder and select Settings
-> Tool Settings -> C Compiler -> Drectories / Symbols)
e. g.
EW_MAX_SURFACE_CACHE_SIZE=0x100000
EW_MAX_GLYPH_SURFACE_WIDTH=256
EW_MAX_GLYPH_SURFACE_HEIGHT=256
EW_FRAME_BUFFER_COLOR_FORMAT_RGB565
EW_USE_OFFSCREEN_BUFFER=0
EW_USE_DOUBLE_BUFFER=1
EW_SURFACE_ROTATION=0
STM32F746xx
USE_STM32746G_DISCO
- add the pre-compiled PlatformPackage libs (libewrte and ewgfx-eval)
and lib paths
(Project -> Properties, Open C/C++Build Folder and select Settings
-> Tool Settings -> C Linker -> Libraries)
Add the libs without "lib" and file extension (e. g. ewrte, ewgfx-eval)
To start with own Embedded Wizard projects, please have a look to
http://doc.embedded-wizard.de
BR
Martin