emWin upgrade     Trade-In program     Web shop

Embedded Studio - Getting Started


➜ Download the Embedded Studio Setup for your operating system and execute it.

The graphical setup will guide you through the installation.

First project

Start Embedded Studio for the first time by opening it from the start menu or through the installation directory. Embedded Studio (3.1 or above) opens an example solution and project called "Hello". This is a basic Cortex-M project which when compiled and downloaded, runs on the IDE's Cortex-M simulator.

Build it via the menu Build -> Build Hello (Shortcut: F7). The output window shows the build progress and the memory usage of the application after the successful build.

Start the application via the menu Debug -> Go (F5). The debug session starts and the sample application runs to main(). Let it run via Debug -> Go (F5). The debug terminal shows the application output of printf ("Hello World 0! ... Hello World 99!").

Halt the application via Debug -> Break (Ctrl+.). It will break in the exit_loop called from exit() in main(). The sample application has run successfully. Stop debugging via Debug -> Stop (Shift+F5).



Hello world from your target

Creating an application which will run on your target hardware is as simple as running the "Hello" sample.

Before creating a new project make sure you have installed the Support Packages for your target device. Open the Package Manager and select the CPU Support Package for your device. If it is not installed yet, right-click on it, select "Install Selected Packages" and click Next. The summary shows the packages which will be installed. Click "Next" to proceed. When all packages are installed, click Finish.

If your target device is not listed in the Package Manager, you can start with a generic executable project for a ARM/Cortex-A/R or Cortex-M processor and add your device-specific files manually.

To create a new project select File -> Create New Project... (Shift-Ctrl+N). Select "Create the project in a new solution". With "Add the project to the current solution" you can manage multiple projects at once and add a new one.

Select to create a C/C++ executable for your target device. (In this example we choose "A C/C++ executable for ST Microelectronics STM32F4xx"). Enter a name for your project (Here: "Hello STM32") and a location for the solution (Here: "C:/Documents and Settings/Anybody/My Documents/Embedded Studio Projects/Hello STM32"). Click Next.

You can now select the target processor to match your device by double-clicking on the device name. We choose STM32F407IE instead of STM32F407VE. All other values already have a good default value. Click Finish.



Now your new project is successfully generated. You can see it in the project explorer. Expand the tree to Project 'Hello STM32' -> Source Files and open main.c by double-clicking on it. This is your first application. You can now build it (F7).

Connect your J-Link and the target device to your computer. Open Target -> Connect and select SEGGER J-Link. Embedded Studio will now connect to your target device. The status is shown in the output window and the status bar.

Start debugging. Instead of running the Simulator, Embedded Studio will now download the application into the memory of your target. After downloading it runs to main(), too. Let it run and you will see the printf output in the target terminal. When the application is finished at the exit_loop, stop the debug session.



You have now set up your first project with Embedded Studio.