Problem With Eclipse (Need more info about setting a project)

mozufferey
Posts: 8
Joined: Thu Aug 10, 2017 7:21 pm

Problem With Eclipse (Need more info about setting a project)

Postby mozufferey » 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

mozufferey
Posts: 8
Joined: Thu Aug 10, 2017 7:21 pm

Re: Problem With Eclipse (Need more info about setting a project)

Postby mozufferey » Wed Sep 13, 2017 8:28 am

In the mean time I have made significant progress and I kann use eclipse to compile and debug.

----------------------------- Wrong understanding -----------------------------------------

- I completely misunderstood what "Target" is for. As previously said I have different boards:
A) ESP-EVB wich is conncted to ttyS2 (USB->com3)
B) ESP_WROVER_KIT (V3) which is connected to ttyS3 (USB->com4)
C) ESP32_Core_board_V2 (RS232 unknown yet)

For me this was clearly three different targets and I was willing to define "target" in eclipse to switch between the different boards.

----------------------------- Hardware setting -----------------------------------------

The main problem with the Hardware setting was with the board ESP_WROVER_kit V3. This board needs some jumpers which are not originally delivered.

A) Jumper for RS232 (JP13)
RXD-TXD0
TXD-RXD0
B) Jumper fo Jtag debug (JP8)
nSRST
TMS
TDO
TDI
TCK
No jumper on
(JP8) S_TDI
(JP14) CTS
(JP14) RTS

----------------------------- Software setting -----------------------------------------

The actual path I use (use the command printenv) is


PATH=/usr/local/bin:/usr/bin:/bin:/mingw32/bin:/usr/lib/gitcore:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/opt/xtensa-esp32elf/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

I also made some change if the file:

msys32/etc/profile

line 24 >> MSYS2_PATH="/usr/local/bin:/usr/bin:/bin:/mingw32/bin:/usr/lib/git-core:/bin"

They might be other setting but those are working for me.

ESP_Sprite
Posts: 9761
Joined: Thu Nov 26, 2015 4:08 am

Re: Problem With Eclipse (Need more info about setting a project)

Postby ESP_Sprite » Mon Sep 18, 2017 2:53 am

Moving this to the SDK forum: this is not a hardware question.

Who is online

Users browsing this forum: No registered users and 123 guests