Setting up Development Toolchain for ESP32

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: Setting up Development Toolchain for ESP32

Postby f.h-f.s. » Wed May 24, 2017 9:50 am

that no rule to make target, sounds to me like IDF_PATH is not set.

wind_energy
Posts: 28
Joined: Fri Feb 03, 2017 10:36 pm

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Wed May 24, 2017 1:25 pm

Ok, but how to set the IDF_PATH?

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Setting up Development Toolchain for ESP32

Postby rudi ;-) » Wed May 24, 2017 1:32 pm

wind_energy wrote:Ok, but how to set the IDF_PATH?
where you set it?
$ echo $IDF_PATH
..

how is the echo out print?
does it show the idf_path ?



best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

wind_energy
Posts: 28
Joined: Fri Feb 03, 2017 10:36 pm

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Wed May 24, 2017 5:58 pm

hi Rudi :)

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ echo $IDF_PATH
C:/msys32/home/pawel/esp/esp-idf
C:\msys32\home\pawel\esp\esp-idf - is empty at the moment

Regards,
Pawel

wind_energy
Posts: 28
Joined: Fri Feb 03, 2017 10:36 pm

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Wed May 24, 2017 6:00 pm

hi Rudi :)

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ echo $IDF_PATH
C:/msys32/home/pawel/esp/esp-idf
C:\msys32\home\pawel\esp\esp-idf - is empty at the moment

Regards,
Pawel

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Setting up Development Toolchain for ESP32

Postby rudi ;-) » Wed May 24, 2017 8:24 pm

wind_energy wrote:hi Rudi :)

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ echo $IDF_PATH
C:/msys32/home/pawel/esp/esp-idf
C:\msys32\home\pawel\esp\esp-idf - is empty at the moment

Regards,
Pawel
from your first post:
1. I have downloaded the esp32_win32_msys2_environment_and_toolchain-20170330,
2. then made git clone --recursive https://github.com/espressif/esp-idf.git in under a directory C:\ESP\esp-idf
3. Downloaded the template into directory myapp2 git clone https://github.com/espressif/esp-idf-template.git myapp2
4. Exported export IDF_PATH="C:\ESP\esp-idf"
5. Then hit the make command to compile the project. make
you must get the exported path "c:/ESP/esp-idf"

from your next post you have done the recursive download right way cause your IDF_PATH folder does have the esp-idf

so then you started again the install after clean and delete all.
and then there must be done a wrong step - cause your IDF_PATH folder is now empty
and shows to the "C:/msys32/home/pawel/esp/esp-idf"

proposal in this moment:
look at c:\ESP\esp-idf
is this folder now empty or does it have the esp-idf ?

if this folder have the esp-idf
then in clean / delete doings there was a step wrong too

the question is:
how you have done the rekursive download
cause usually the rekursive download must "download to a folder...."

your post shows:

Code: Select all

git clone --recursive https://github.com/espressif/esp-idf.git 
this step comes from here

Code: Select all

cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git


so you will find the esp-idf then here:

Code: Select all

~/esp/esp-idf
and thats the echo output what you get

Code: Select all

~
means, that is your user home
user: pbl
home is usually : /home/pbl

but you have an other user here :)
user is: pawel

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ echo $IDF_PATH
C:/msys32/home/pawel/esp/esp-idf


and the question is: how is that possible?
it looks,
- you have installed msys32 environment with user: pbl
- you try to install esp-idf to the home of user: pawel

look in the folder structure

Code: Select all

c:/msys32/home
there are two users show then

Code: Select all

pbl
pawel
and there was a mistake in install then ..
cause the esp-idf shown from your post
shows, that the esp-idf is not in the home installed
but under c:/esp...


short and dirty:
a)
check is your python ok
type

Code: Select all

$ python -V
what is your output?


b)
if you have installed msys32 and toolchain and the things are under c:/msys32
use the msys32 shell command
now check for the runing "make" you have installed:
type

Code: Select all

make -v
what is the output?

c)
if your output is likewise:
example:

Code: Select all

$ python -V
Python 2.7.11
python is instaled and in the path entried.

$ make -v
GNU Make 4.2.1
Gebaut für i686-pc-msys
Copyright (C) 1988-2016 Free Software Foundation, Inc.
Lizenz GPLv3+: GNU GPL Version 3 oder später <http://gnu.org/licenses/gpl.html>
Dies ist freie Software: Sie können sie nach Belieben ändern und weiter verteilen.
Soweit es die Gesetze erlauben gibt es KEINE GARANTIE.
or likewise and you have the esp-idf in c:\esp\esp-idf
then export the path to the installed esp-idf like this

usually like the install readme is normal:

Code: Select all

export IDF_PATH="C:/msys32/home/Krzysztof/esp/esp-idf"
then the esp-idf must be in your home of msys32 shell
see detailed to the command, the example shows the user "Krzysztof"
your user name is different, use the right you want use

AND!
if you work with this -
be sure you are login in windows with this user :)

AND if you set to different folder outside the msys32 shell home ( c:/msys32/home)
example c:/ESP/esp-idf

then you must export the idf like this

Code: Select all

export IDF_PATH="C:/ESP/esp-idf"
now usually the "make" find the the esp-idf makefile

before next steps give feedback, does this make now find the makefile?

next step then are example project / Hello world ...


best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

GeorgeIoak
Posts: 14
Joined: Wed May 24, 2017 8:50 pm

Re: Setting up Development Toolchain for ESP32

Postby GeorgeIoak » Wed May 24, 2017 8:51 pm

From your last post you showed that you issued make in the getting started directory but you need to go down 1 more level into the hello world directory and then issue make

wind_energy
Posts: 28
Joined: Fri Feb 03, 2017 10:36 pm

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Thu May 25, 2017 4:55 am

Rudi,
there are two users show then
CODE: SELECT ALL
pbl
pawel
How can I fix it?
a)
check is your python ok
type

Code: Select all

CODE: SELECT ALL
$ python -V
what is your output?
Answare:

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ python -V
-bash: python:  No command found
Many thanx !!
Pawel

Who is online

Users browsing this forum: No registered users and 105 guests