3.3k views
in Getting started by
Hi,

i just started to port an existing project with embedded wizard. I decide to work with Atolic true studio or Keil compiler and the profesional edition of EmWi (currently evaluation). MCU candidate will be STM32F746 and in the future STM32H7 series when it will be available as it's pin compatible. It will be very  nice for some tutorials  of getting started with setting up all together as evaluation edition is working with precompiled libraries of GCC toolchain only. Problem is coming when someone tries to combine a cross-compiler and a GUI framework together and this is sometimes especially for newcomers a cumbershome learning curve. I am very confidence that EmWI will cover all my GUI design aspects but it's dificult to predict how it will behave when the real application comes into the game. So please guide if there is some relevant tutors or where i can find additional info.

BR

Paul.

2 Answers

+1 vote
by
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
by
Hi Martin,

thank you for your quick response,this is a good starting point i'll give it a try and i'll come back for results.

BR

Paul.
by
Martin,

Can you elaborate on your comment "add the Embedded Wizard Build Enviroment to the  Atollic TrueSTUDIO workspace"

I am trying to just debug a hardware driver. Trying to do so using the EmWi build enviroment has proven tough.

Any thoughts or a guide on setting up an enviroment in TrueStudio would greatly be appreciated!
by
Hello,

I have been trying to compile and run a project in Atollic trueStudio, but it fails linking the files from the STM32F7 folder, can somebody upload a working trueStudio project working with embedded wizard? Or have an idea about my problem?

Thanks in advance
0 votes
by

Hi,

together with our new version 9.00 of Embedded Wizard Studio, we released new Build Environments for the different STM32 discovery and evalutaion boards.

Within every Build Environment we provide now a ready-to-use project for GCC, IAR Embedded Workbench, Keil MDK-ARM and Atollic TrueSTUDIO.

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...