How to install and use Eclipse properly to build example codes
Posted: Wed Nov 10, 2021 1:11 am
I installed the ESP-IDF suite on Windows 10 according to the information in https://docs.espressif.com/projects/esp ... index.html, and it somehow got installed on my C:\users\public\desktop\edf-ide-2 folder. The desktop also has the shortcut links to ESP-IDF 4.3 CMD, ESP-IDF 4.3 Powershell and ESP-IDF Eclipse. The targets are:
C:\WINDOWS\system32\cmd.exe /k ""C:\Users\paul\.espressif\idf_cmd_init.bat" esp-idf-9a13e73ecaeca1c08b94992add490a27"
C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoExit -File "C:\Users\paul\.espressif/Initialize-Idf.ps1" -IdfId esp-idf-9a13e73ecaeca1c08b94992add490a27
and
C:\Users\paul\.espressif\tools\idf-eclipse\2021-09\eclipse.exe
All three have "Start In" Public Desktop
In order for me to use these links, I need to run them as administrator - otherwise they give write permission errors. I might be able to avoid that by setting up the executables as "run as administrator", but I haven't tried that yet. I also tried to install the ESP-IDF suite in my C:\Users\paul folder, and so I have a copy of the esp-idf folder there, as well as an eclipse-workspace folder in which I now have folders for blink1, blink2, NewBlink, NewBlink1, HelloWorld, and .metadata. The HelloWorld folder has hello_world_main.c which I have edited in Eclipse, and I think I was able to build and run this from Eclipse.
However, I seem to be making some mistakes with the various "blink" projects. "NewBlink" has "local" as target, and I cannot edit or delete the configuration from the list. "NewBlink1" somehow has main.c which is from a wifi project. "blink1" has a main.c which i copied from the original blink project where it is named blink.c.
I have been able to build, flash, and run the "blink" project on an ESP32-DevKitC-VE, and the "Hello_World" project on an ESP32-S2-DevKitM-1, using command prompt. But I don't really understand the Eclipse environment and I seem to be doing some wrong things. I would really like to just uninstall the software and then make a new install in my C:\users\paul folder where I think it belongs. And that may eliminate the problem that requires me to run in administrator mode. But the programs do not show up in the Windows App list where I would normally choose to remove the software.
I can live with it as it is now, but I'd like to learn the proper way to set up a new project in Eclipse from the examples. Please provide a detailed step-by step process to do this for "blink", or even better, one of the Bluetooth projects, especially if one will allow the use of one of the modules as a simple Bluetooth Com port like the HC-05.
TIA for any help you can provide, including perhaps a video or tutorial on using Eclipse for ESP-32 modules.
C:\WINDOWS\system32\cmd.exe /k ""C:\Users\paul\.espressif\idf_cmd_init.bat" esp-idf-9a13e73ecaeca1c08b94992add490a27"
C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoExit -File "C:\Users\paul\.espressif/Initialize-Idf.ps1" -IdfId esp-idf-9a13e73ecaeca1c08b94992add490a27
and
C:\Users\paul\.espressif\tools\idf-eclipse\2021-09\eclipse.exe
All three have "Start In" Public Desktop
In order for me to use these links, I need to run them as administrator - otherwise they give write permission errors. I might be able to avoid that by setting up the executables as "run as administrator", but I haven't tried that yet. I also tried to install the ESP-IDF suite in my C:\Users\paul folder, and so I have a copy of the esp-idf folder there, as well as an eclipse-workspace folder in which I now have folders for blink1, blink2, NewBlink, NewBlink1, HelloWorld, and .metadata. The HelloWorld folder has hello_world_main.c which I have edited in Eclipse, and I think I was able to build and run this from Eclipse.
However, I seem to be making some mistakes with the various "blink" projects. "NewBlink" has "local" as target, and I cannot edit or delete the configuration from the list. "NewBlink1" somehow has main.c which is from a wifi project. "blink1" has a main.c which i copied from the original blink project where it is named blink.c.
I have been able to build, flash, and run the "blink" project on an ESP32-DevKitC-VE, and the "Hello_World" project on an ESP32-S2-DevKitM-1, using command prompt. But I don't really understand the Eclipse environment and I seem to be doing some wrong things. I would really like to just uninstall the software and then make a new install in my C:\users\paul folder where I think it belongs. And that may eliminate the problem that requires me to run in administrator mode. But the programs do not show up in the Windows App list where I would normally choose to remove the software.
I can live with it as it is now, but I'd like to learn the proper way to set up a new project in Eclipse from the examples. Please provide a detailed step-by step process to do this for "blink", or even better, one of the Bluetooth projects, especially if one will allow the use of one of the modules as a simple Bluetooth Com port like the HC-05.
TIA for any help you can provide, including perhaps a video or tutorial on using Eclipse for ESP-32 modules.