Page 1 of 2

Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 5:38 am
by wind_energy
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

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 6:45 am
by kurtzweber
Hi

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

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 8:17 am
by wind_energy
I`m running msys2_shell.cmd
Regards,
Pawel

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 8:58 am
by kurtzweber
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.

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 11:06 am
by wind_energy
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 :(

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 12:23 pm
by sintech
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 (~)

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 1:45 pm
by wind_energy

Code: Select all

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

Re: Setting up Development Toolchain for ESP32

Posted: Tue May 23, 2017 2:05 pm
by sintech
Dir where you run 'make' should have 'Makefile', for example "esp-idf/examples/get-started/hello_world"

Re: Setting up Development Toolchain for ESP32

Posted: Wed May 24, 2017 5:22 am
by wind_energy
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 14336 times

Re: Setting up Development Toolchain for ESP32

Posted: Wed May 24, 2017 8:28 am
by ESP_krzychb
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.