When plugged in, it seems to run a blink demo out of the box. There is a blue led driven by "pin 5" (and conveniently next to the pin 5 connector). There is also a red power LED next to the USB connector, and a yellow "charge" LED between the red LED and the battery connector. There are also edge pins available to connect the battery if you don't have the 2mm pitch JST connector.
It is important to clone with the --recursive flag or you don't get the new esptool.py (among other things).
git clone --recursive https://github.com/espressif/esp-idf.git Cloning into 'esp-idf'... Checking connectivity... done. Submodule 'components/bt/lib' (https://github.com/espressif/esp32-bt-lib.git) registered for path 'components/bt/lib' Submodule 'components/esp32/lib' (https://github.com/espressif/esp32-wifi-lib.git) registered for path 'components/esp32/lib' Submodule 'components/esptool_py/esptool' (https://github.com/themadinventor/esptool.git) registered for path 'components/esptool_py/esptool'
When you get in the mood to update this stuff, you need a two step process in order to update both the top level and the modules.
git pull git submodule update --recursive
wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-59.tar.gzThis is about 33.5M in size.
The question now is, where should this go? I already have my ESP8266 stuff in /opt as /opt/esp-open-sdk/xtensa-lx106-elf. It would make sense to put this right alongside, so I do this:
cd /opt ln -s esp-open-sdk esp8266 mkdir esp32 cd esp32 tar xzvf /path/xtensa-esp32-elf-linux64-1.22.0-59.tar.gz mv /path/esp-idf .After doing this, the compiler paths are analogous as:
/opt/esp32/xtensa-esp32-elf /opt/esp8266/xtensa-lx106-elfThis is kinda nice.
cd /opt/esp32 git clone https://github.com/espressif/esp-idf-template.git myappNow I have all of the esp32 development stuff under /opt/esp32
dnf install gperf dnf install ncurses-develTo use their setup, I need to do this:
export IDF_PATH=/opt/esp32/esp-idf make menuconfigThis is as far as I have gotten for now.
./esptool.py -p /dev/ttyUSB1 flash_id esptool.py v2.0-dev Connecting... Detecting chip type... ESP32 Uploading stub... Running stub... Stub running... Manufacturer: ef Device: 4016The "stub" business is something new. It is a piece of precompiled code that gets loaded into the ESP32 that adds functionality to the bootloader. Sources are provided (but not required, the precompiled stub code is embedded in the python script).
Tom's Computer Info / email@example.com