Problem With Eclipse (Need more info about setting a project)
Posted: Thu Aug 10, 2017 9:08 pm
Hello,
I'm quite new in the real of Eclipse and Unix. I've been using Keil IDE on the past, but now I'm struggling to set the Eclipse.
Actually I bought two demo boards:
- The ESP32-EVB (Rev.B)
- The ESP-WROVER-KIT
The working station is:
- A PC (64 bits) with Windows 10 on it.
The software I've install on is:
- msys32 (esp32_win32_msys2_environment_and_toolchain-20170330.zip)
- java (jdk-8u131-windows-x64)
- Eclipse (4.7.0
- ESP-IDF (V2.1)
- Some Drivers (e.g. CP210x_Windows_Drivers)
Success with MSYS32:
- I have been able to run Blinky and Hello World on the ESP32-evb (Rev.B) .
- I can "make configmenu", "make" and "make flash".
Success with eclipse:
- Using the Console (GIT - bash) i was able to do almost the same as with the MSYS32.
- The only problem is that "PATH" is different between MSYS32 and GIT-bash. After setting manually the Path in the GIT-bash, I can make menuconfig, make, make flash.
- I can use the "serial Terminal" to see the "Hello world".
Problem with Eclipse:
I'm not able to set the "toolchain" to have the project build. (Unfortunately Kolban's book use older eclipse and some Instruction should be Extrapolated.
Eclipse is not able to compile the components
Here are what I learned up to now:
- C:\msys32\mingw32\bin (here is the python.exe command)
- C:\msys32\opt\xtensa-esp32-elf\bin (emplacement for the xtensa-esp32-elf-gcc.exe)
- C:\msys32\usr\bin (emplacement of the make.exe)
- C:\msys32\home\myself\esp\esp-idf (the actual IDF with \components \examples \make \tools )
- C:\msys32\home\myself\esp\hello_world (the project copied from example with the files :
"Makefile", "main\hello_wolrd_main.c" and "component.mk" )
Using MSYS32 or GIT-bash it create:
- C:\msys32\home\myself\esp\hello_world\build\
In \build\ I found all the components structures (folder and subfolder) with a the following files (xxx.o, xxx.d xxx.mk libxxx.a )
It seems that the make is using the following cascad of commands :
- C:\msys32\home\myself\esp\hello_world\Makefile -
-> C:\msys32\home\myself\esp\esp-idf\make\project.mk
-> C:\msys32\home\myself\esp\esp-idf\make\componnent_common.mk ->
-> ( C:\msys32\home\myself\esp\esp-idf\make\component_wrapper.mk)
Appararently componnent_common.mk is empty and require a new variable $(COMPONENT_PATH)/component.mk.
I will investigate later if this is the source of my problem
I'm quite new in the real of Eclipse and Unix. I've been using Keil IDE on the past, but now I'm struggling to set the Eclipse.
Actually I bought two demo boards:
- The ESP32-EVB (Rev.B)
- The ESP-WROVER-KIT
The working station is:
- A PC (64 bits) with Windows 10 on it.
The software I've install on is:
- msys32 (esp32_win32_msys2_environment_and_toolchain-20170330.zip)
- java (jdk-8u131-windows-x64)
- Eclipse (4.7.0
- ESP-IDF (V2.1)
- Some Drivers (e.g. CP210x_Windows_Drivers)
Success with MSYS32:
- I have been able to run Blinky and Hello World on the ESP32-evb (Rev.B) .
- I can "make configmenu", "make" and "make flash".
Success with eclipse:
- Using the Console (GIT - bash) i was able to do almost the same as with the MSYS32.
- The only problem is that "PATH" is different between MSYS32 and GIT-bash. After setting manually the Path in the GIT-bash, I can make menuconfig, make, make flash.
- I can use the "serial Terminal" to see the "Hello world".
Problem with Eclipse:
I'm not able to set the "toolchain" to have the project build. (Unfortunately Kolban's book use older eclipse and some Instruction should be Extrapolated.
Eclipse is not able to compile the components
Here are what I learned up to now:
- C:\msys32\mingw32\bin (here is the python.exe command)
- C:\msys32\opt\xtensa-esp32-elf\bin (emplacement for the xtensa-esp32-elf-gcc.exe)
- C:\msys32\usr\bin (emplacement of the make.exe)
- C:\msys32\home\myself\esp\esp-idf (the actual IDF with \components \examples \make \tools )
- C:\msys32\home\myself\esp\hello_world (the project copied from example with the files :
"Makefile", "main\hello_wolrd_main.c" and "component.mk" )
Using MSYS32 or GIT-bash it create:
- C:\msys32\home\myself\esp\hello_world\build\
In \build\ I found all the components structures (folder and subfolder) with a the following files (xxx.o, xxx.d xxx.mk libxxx.a )
It seems that the make is using the following cascad of commands :
- C:\msys32\home\myself\esp\hello_world\Makefile -
-> C:\msys32\home\myself\esp\esp-idf\make\project.mk
-> C:\msys32\home\myself\esp\esp-idf\make\componnent_common.mk ->
-> ( C:\msys32\home\myself\esp\esp-idf\make\component_wrapper.mk)
Appararently componnent_common.mk is empty and require a new variable $(COMPONENT_PATH)/component.mk.
I will investigate later if this is the source of my problem