ESP32

From ElectroDragon
Jump to: navigation, search

Brief Info

Esp-32 brief.jpg

Schematic, pin definition

Documents

Module WROOM-32

ESP32-DevKitC Board

Reference

Toolchain

Arduino

Esp32 pinmap.png
cd esp32/tools,  and,  python get.py
  • Install python 2.7, and make sure pyserial installed
  • run arduino blink sketch to test, pin LED 1 will blink esp32 TX pin

ESP-IDF

esp-idf # development framwork
xtensa-esp32-elf # toolchain
<myapp-or-anyname> #esp-idf-template example, turn of wifi, and blink led GPIO4,  gpio_set_direction(GPIO_NUM_4, GPIO_MODE_OUTPUT);
<.. any other your apps>
  • first install all dependencies: sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
  • install toolchian xtensa-esp32-elf:
in esp folder: wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-59.tar.gz
unzip toolchain: tar -xzf xtensa*.tar.gz
add PATH to enviornment: export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin, more details see on http://www.electrodragon.com/w/Category:Linux#PATH
  • clone install IDF:
in esp folder: git clone --recursive https://github.com/espressif/esp-idf.git
  • clone example template:
in esp folder git clone into myapp folder: git clone https://github.com/espressif/esp-idf-template.git myapp
  • Run a strange export command and run menu:
export IDF_PATH=~/esp/esp-idf
config menu: make menuconfig
make and flash with download tool: make flash

Reference Link