background image

3.

Getting Started with ESP32-

WATG-32D 

3.1. ESP-IDF 

The Espressif IoT Development Framework (ESP-IDF for short) is a framework for 
developing applications based on the Espressif ESP32. Users can develop 
applications with ESP32 in Windows/Linux/MacOS based on ESP-IDF. 

3.2. Set up the Tools 

Aside from the ESP-IDF, you also need to install the tools used by ESP-IDF, such as 
the compiler, debugger, Python packages, etc. 

3.2.1. Standard Setup of Toolchain for Windows 

The quickest way is to download the toolchain and MSYS2 zip from 

dl.espressif.com

https://dl.espressif.com/dl/
esp32_win32_msys2_environment_and_toolchain-20181001.zip

 

Checking out 

Run 

C:\msys32\mingw32.exe

 to open an MSYS2 terminal. Run: 

mkdir -p ~/esp

Input 

cd ~/esp

 to enter the new directory. 

Updating the Environment 

When IDF is updated, sometimes new toolchains are required or new requirements are 
added to the Windows MSYS2 environment. To move any data from an old version of 
the precompiled environment to a new one: 

Take the old MSYS2 environment (ie C:

\msys32

) and move/rename it to a different 

directory (ie 

C:\msys32_old

). 

Download the new precompiled environment using the steps above. 

Unzip the new MSYS2 environment to 

C:\msys32

 (or another location). 

Find the old 

C:\msys32_old\home

 directory and move this into 

C:\msys32

You can now delete the 

C:\msys32_old

 directory if you no longer need it. 

You can have independent different MSYS2 environments on your system, as long as 
they are in different directories. 

3.2.2. Standard Setup of Toolchain for Linux 

Install Prerequisites 

CentOS 7

 

sudo yum install gcc git wget make ncurses-devel flex bison gperf python pyserial 
python-pyelftools

Ubuntu 

 Debian

 

Summary of Contents for ESP32-WATG-32D

Page 1: ...ESP32 WATG 32D User Manual Preliminary version 0 1 Espressif Systems Copyright 2019...

Page 2: ...t is intended to help users set up the basic software development environment for developing applications using hardware based on the ESP32 WATG 32D module Release Notes Date Version Release notes 201...

Page 3: ...olchain for Windows 7 3 2 2 Standard Setup of Toolchain for Linux 7 3 2 3 Standard Setup of Toolchain for Mac OS 9 3 3 Get ESP IDF 9 3 4 Add IDF_PATH to User Profile 10 3 4 1 Windows 10 3 4 2 Linux an...

Page 4: ...tion and 0 4 s guard in terval support Frequency range 2400 MHz 2483 5 MHz Bluetooth Protocols Bluetooth v4 2 BR EDR and BLE specification Radio NZIF receiver with 97 dBm sensitivity Class 1 class 2 a...

Page 5: ...tions Name No Typ e Function RESET 1 I Module enable signal Internal pull up by default Active high I36 2 I GPIO36 ADC1_CH0 RTC_GPIO0 I37 3 I GPIO37 ADC1_CH1 RTC_GPIO1 I38 4 I GPI38 ADC1_CH2 RTC_GPIO2...

Page 6: ...er supply input GND 16 17 PI Ground VIN 18 I O 12 V 24 V power supply input TCK 19 I O GPIO13 MTCK TDO 20 I O GPIO15 MTDO EBUS2 21 35 I O GPIO19 GPIO22 EBUS2 IO2 22 I O GPIO2 ADC2_CH2 TOUCH2 RTC_GPIO1...

Page 7: ......

Page 8: ...XD and GND 3 Connect USB to UART dongle to the PC via the Micro USB cable 4 Connect the carrier board to 24 V adapter for power supply 5 During download short IO0 to GND via a jumper Then turn ON the...

Page 9: ......

Page 10: ...the new directory Updating the Environment When IDF is updated sometimes new toolchains are required or new requirements are added to the Windows MSYS2 environment To move any data from an old versio...

Page 11: ...r xzf Downloads xtensa esp32 elf linux32 esp32 2019r1 8 2 0 tar gz 2 The toolchain will be unzipped to esp xtensa esp32 elf directory Add the following to profile export PATH HOME esp xtensa esp32 elf...

Page 12: ...HOME esp xtensa esp32 elf bin PATH Optionally add the following to profile alias get_esp32 export PATH HOME esp xtensa esp32 elf bin PATH Input get_esp322 to add the toolchain to PATH 3 3 Get ESP IDF...

Page 13: ...n idf py and other tools 3 4 2 Linux and MacOS Add the following to profile export IDF_PATH esp esp idf export PATH IDF_PATH tools PATH Run the following to check IDF_PATH printenv IDF_PATH Run the fo...

Page 14: ...internet and install them Below are the links to drivers that can be used CP210x USB to UART Bridge VCP Drivers FTDI Virtual COM Port Drivers The drivers above are primarily for reference Under normal...

Page 15: ...s the serial port over USB On most Linux distributions this is done by adding the user to dialout group with the following command sudo usermod a G dialout USER on Arch Linux this is done by adding th...

Page 16: ...ity N Below are example screen shots of setting the port and such transmission parameters in short described as 115200 8 1 N on Windows and Linux Remember to select exactly the same serial port you ha...

Page 17: ...e ESP32 will boot and produce serial output This depends on the hardware itself most development boards including all Espressif boards do not have this issue The issue is present if RTS DTR are wired...

Page 18: ...f py DIDF_TARGET esp32 menuconfig The Python 2 7 installer will attempt to configure Windows to associate a py file with Python 2 If other programs such as Visual Studio Python tools have been associa...

Page 19: ...git found version 2 17 0 Building empty aws_iot component due to configuration Component names Component paths more lines of build system output 527 527 Generating hello world bin esptool py v2 3 1 P...

Page 20: ...v2 3 1 Connecting Detecting chip type ESP32 Chip is ESP32D0WDQ6 revision 1 Features WiFi BT Dual Core Uploading stub Running stub Stub running Changing baud rate to 460800 Changed Configuring flash s...

Page 21: ...2016 00 22 57 rst 0x1 POWERON_RESET boot 0x13 SPI_FAST_FLASH_BOOT ets Jun 8 2016 00 22 57 After startup and diagnostic logs scroll up you should see Hello world printed out by the application Hello w...

Page 22: ...9 Examples For ESP IDF examples please go to ESP IDF GitHub...

Page 23: ...lity for infringement of any proprietary rights relating to use of information in this document is disclaimed No licenses express or implied by estoppel or otherwise to any intellectual property right...

Reviews: