Setting up Development Toolchain for ESP32

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

Setting up Development Toolchain for ESP32

Postby wind_energy » Tue May 23, 2017 5:38 am

Hi,
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

then errors occurs:
$ make
/bin/sh: python: not fund command
make[1]: *** [/c/ESP/esp-idf/components/esptool_py/Makefile.projbuild:49: /c/esp/myapp2/build/bootloader/bootloader.bin] ERROR 127
make: *** [/c/ESP/esp-idf/components/bootloader/Makefile.projbuild:31: /c/esp/myapp2/build/bootloader/bootloader.bin] ERROR 2

Please for any advice.
Many thanks,
Pawel

kurtzweber
Posts: 64
Joined: Tue Jan 10, 2017 1:09 pm

Re: Setting up Development Toolchain for ESP32

Postby kurtzweber » Tue May 23, 2017 6:45 am

Hi

make sure to run "minigw32.exe" (or 64) and not "msys2.exe"

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

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Tue May 23, 2017 8:17 am

I`m running msys2_shell.cmd
Regards,
Pawel

kurtzweber
Posts: 64
Joined: Tue Jan 10, 2017 1:09 pm

Re: Setting up Development Toolchain for ESP32

Postby kurtzweber » Tue May 23, 2017 8:58 am

No, you must run minigw32.exe as explained in the guide:

http://esp-idf.readthedocs.io/en/latest ... setup.html

Check it Out
Open an MSYS2 terminal window by running C:\msys32\mingw32.exe. The environment in this window is a bash shell.

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

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Tue May 23, 2017 11:06 am

I have made everything following by tutorial.
As soon as I make this step: http://esp-idf.readthedocs.io/en/latest ... et-esp-idf nothing works..

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ make menuconfig
make: *** No rules to execute object  'menuconfig'. Stop.

Code: Select all

pbl@pbl-Komputer MINGW64 ~
$ make flash
make: *** No rules to execute object  'flash'. Stop.
Before I`ve downloaded

Code: Select all

 git clone --recursive https://github.com/espressif/esp-idf.git 
command menuconfig was working :(

sintech
Posts: 27
Joined: Wed Dec 14, 2016 2:54 pm

Re: Setting up Development Toolchain for ESP32

Postby sintech » Tue May 23, 2017 12:23 pm

You should change directory to place where you have example project or template before executing "make"
But according to your output your current dir is your home dir (~)

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

Re: Setting up Development Toolchain for ESP32

Postby wind_energy » Tue May 23, 2017 1:45 pm

Code: Select all

pbl@pbl-Komputer MINGW64 /c/ESP/esp-idf/examples/get-started
$ make flash
make: *** No rules to execute object 'flash'. Stop.

sintech
Posts: 27
Joined: Wed Dec 14, 2016 2:54 pm

Re: Setting up Development Toolchain for ESP32

Postby sintech » Tue May 23, 2017 2:05 pm

Dir where you run 'make' should have 'Makefile', for example "esp-idf/examples/get-started/hello_world"

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:22 am

There it is.
I don`t know...maybe I should start installation at the beginning? Remove all and then start again?
makefile.png
makefile.png (61.11 KiB) Viewed 14339 times

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: Setting up Development Toolchain for ESP32

Postby ESP_krzychb » Wed May 24, 2017 8:28 am

I don`t know...maybe I should start installation at the beginning? Remove all and then start again?
Yes, this is advisable to start from scratch but following step by step http://esp-idf.readthedocs.io/en/latest ... index.html.
If you diverge from this procedure it takes extra time and effort to find out the issue and help you out.

Who is online

Users browsing this forum: alifepretend and 185 guests