Line 12: Line 12:
 
</div>
 
</div>
  
 +
=Download and Install Eclipse C/C++ IDE=
 
To get started download the latest eclipse IDE for C/C++
 
To get started download the latest eclipse IDE for C/C++
 
<syntaxhighlight>
 
<syntaxhighlight>
Line 17: Line 18:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Install and start the IDE.
+
=Create a New Project=
  
 
All the images below have steps marked with numbers, please perform them in a series.  
 
All the images below have steps marked with numbers, please perform them in a series.  
Line 26: Line 27:
 
# Enter the project Name as 01_hello_world
 
# Enter the project Name as 01_hello_world
 
[[File:2_make_file_proj_esp32.JPG]]
 
[[File:2_make_file_proj_esp32.JPG]]
 +
 +
=Setup Environment Variables=
 
[[File:3_proj_properties.jpg]]
 
[[File:3_proj_properties.jpg]]
 
[[File:4_env_variables.JPG]]
 
[[File:4_env_variables.JPG]]
 
[[File:5_update_env_variables.JPG]]
 
[[File:5_update_env_variables.JPG]]
 
[[File:6_path_variables.JPG]]
 
[[File:6_path_variables.JPG]]
 +
 +
=Setup Build Variables=
 
[[File:7_build_cmd.JPG]]
 
[[File:7_build_cmd.JPG]]
 
[[File:9_compiler_settings.JPG]]
 
[[File:9_compiler_settings.JPG]]
 +
 +
=Build/Compile  the Project=
 
[[File:10_build_settings.JPG]]
 
[[File:10_build_settings.JPG]]
 
[[File:11_build_proj.JPG]]
 
[[File:11_build_proj.JPG]]
Line 38: Line 45:
 
[[File:13_add_dependency_paths.JPG]]
 
[[File:13_add_dependency_paths.JPG]]
 
[[File:14_add_dependency_paths.JPG]]
 
[[File:14_add_dependency_paths.JPG]]
=Targets=
+
=Configure targets=
 
[[File:15_targets.JPG]]
 
[[File:15_targets.JPG]]
 
[[File:16_target_flash.JPG]]
 
[[File:16_target_flash.JPG]]
 
[[File:17_flash_success.JPG]]
 
[[File:17_flash_success.JPG]]
 
=References=
 
=References=

Revision as of 15:19, 23 December 2016

(Tutorial in the making...)
Eclipse offers a very good development environment with numerous features, however setting it correctly is sometimes frustrating. Once it is done, it make the workflow quite simple. So let's set it up and see how it goes!

The first thing that needs to be done is to set-up ESP-IDF and ensure that all the dependencies are taken care of. Check the detailed tutorial on setting up ESP-IDF to get that done.

The ESP-IDF is setup in such a way that you can develop your application without modifying the ESP-IDF files. The application can reside in a completely separate directory from the ESP-IDF files. This allows the ESP-IDF core files to be updated independently of the application. We will be configuring the same 01_hello_world example from the above tutorial.

Ensure that the tool-chain works from command line, before proceeding with this tutorial. In fact this tutorial uses the makefile setup from the previous tutorial to configure the tool-chain.

Download and Install Eclipse C/C++ IDE

To get started download the latest eclipse IDE for C/C++

http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2

Create a New Project

All the images below have steps marked with numbers, please perform them in a series. To start with

  1. Select the project type as Empty Project
  2. Toolchains as Cross GCC
  3. Uncheck Use Default Location
  4. Enter the project Name as 01_hello_world

2 make file proj esp32.JPG

Setup Environment Variables

3 proj properties.jpg 4 env variables.JPG 5 update env variables.JPG 6 path variables.JPG

Setup Build Variables

7 build cmd.JPG 9 compiler settings.JPG

Build/Compile the Project

10 build settings.JPG 11 build proj.JPG 12 build sucess.JPG

Resolving Dependencies

13 add dependency paths.JPG 14 add dependency paths.JPG

Configure targets

15 targets.JPG 16 target flash.JPG 17 flash success.JPG

References