Flashing Firmware in ESP-WROOM-32 Breakout Module

Hi everyone, in this blog post we will be sharing the procedure for flashing a firmware to ESP-WROOM-32. ESP-WROOM-32 is a powerful WiFi-BT-BLE MCU module that targets a wide variety of applications ranging from low-power sensor networks to the most demanding tasks, such as voice encoding, music streaming and MP3 decoding.

Now let us explore, how to flash a firmware in ESP32 breakout module.

Fig: below shows the Elementz ESP32 breakout module

esp

Programming  ESP32 breakout V1.0 using Arduino Core in Windows

Step 1: Download and install latest Arduino IDE from arduino.cc

Step 2: To install arduino ESP32 support,installation instructions can be obtained from Instructions for windows

Step 3: Download and install Git from git-scm.com

Step 4: Start Git GUI and run the following steps:

  • Select Clone Existing Repository

gui

  •  Select source and destination
    •      Source Location: https://github.com/espressif/arduino-esp32.git
    •      Target Directory:   Documents/Arduino/hardware/espressif/esp32
    •       Click Clone to start cloning the repository

esp1

  •  Open Documents/Arduino/hardware/espressif/esp32/tools and double-click get.exe

cmd

  • When get.exe finishes, you can see the following files in the directory

esp2.png

Step 5: Connect ESP32 breakout module to the USB to TTL converter as shown in the figure below:

esp_conn

Step 6: Select the Board as Node32s and select corresponding port from Tools menu

esp3.png

Step 7: Use the following sketch

code

Step 8: Click “upload” option in the toolbar

esp4

If the code is uploaded successfully, then LED on esp-wroom-32 starts blinking

Programming  ESP32 breakout V1.0 using Arduino Core in Linux

Step1: Download and install latest Arduino IDE from arduino.cc

Step 2: To install arduino ESP32 support,installation instructions can be obtained from Instructions for Debian/Ubuntu Linux

Step 3: Open Terminal and execute the following command

sudo usermod -a -G dialout $USER && \
sudo apt-get install git && \
mkdir -p ~/Arduino/hardware/espressif && \
cd ~/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32/tools/ && \
python get.py

Here Git is installed,esp32 files are cloned and get.py is executed.You can see the esp32 folder inside arduino with esp32 files installed.

Step 4: Open arduino IDE

Step 5: Use the above same sketch used for windows, Select the board as Node32s and select the corresponding port

Step 6: Now your console looks like this:

esp5

 

Step 7: Click upload and if the code snippet is uploaded successfully, then the LED on esp-wroom- 32 starts blinking.

 

 

 

Leave a comment