name IDF_PATH, value the path where esp-idf is installed (note: you have to use / instead of \).Add (using the Add… button) two new variables: When the import is complete, open the project Properties:įirst select C/C Build – Environment. Give the project a name, choose the folder that contains the code and make sure that the selected toolchain is Cross GCC: For this tutorial, I’m going to use the 01_hello_world example in a future post I’ll show you how to start with an empty project.Ĭhoose File – Import, then run the Existing Code as Makefile project wizard: To be able to develop a project based on esp-idf with Eclipse, you need to do some configuration. I chose to create the workspace as a subfolder of Eclipse’s installation folder: At first, you are prompted to specify the path of your workspace (= the folder where your projects will be saved in). Run Eclipse with a double-click on eclipse.exe. To make it easy, I chose the same folder (the user’s home folder) where I’ve already installed the esp-idf: When the download is complete, unzip the archive in a folder of your hard drive. InstallationĮclipse installation is really straightforward: connect to the official site and download Eclipse IDE for C/C Developers for your operating system (as in the previous post, I decided to use Windows):Įclipse is shipped as a zip archive. Among the available IDEs, one of the most famous and adopted is without doubts Eclipse. In the previous blog post, I explained how to install the official development framework ( Espressif IoT Development Framework) and how to use it to compile your first example, Hello world.Įven if you can write your programs with a simple text editor (on Windows I always suggest to use the opensource Notepad ), it’s very easier to do it with an IDE ( Integrated Development Environment), that is a graphical application which you can use to write the code (it often includes syntax highlighting and auto-completion), to compile it and to upload the binary on you development board.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |