ESP32 is a low-cost SoC (system on a chip) with Wi-Fi & Bluetooth capabilities.
Site Admin
Posts: 179
Joined: 07 Oct 2017, 12:16


Postby rwblinn » 08 Oct 2017, 18:43

TODO: Update this post.

B4R 1.8.0 or higher supports the ESP32.
Note that the Arduino IDE 1.8 (or higher) is required.

Status 20170110
Development is in an early stage - no full functionality yet.
Tested first time installation with package version 1.22.0-59.

ESP32 is a low-cost SoC (system on a chip) with Wi-Fi & Bluetooth capabilities.

Overview: ... 2/overview
Resources: ... /resources
Development Framework:
Arduino core for the ESP32:
Package information which is used to install/update by script in \tools\ folder: ... plate.json

Kit used
The ESP32-DevKitC is a small-sized ESP32-based development board produced by Espressif.
Model: ESP32-DEVKITC Core Board V2 Espressif including genuine ESP-WROOM-32
Development PC (old) Toshiba Notebook Satellite with Windows Vista.

Get Started
Window 10: Install the latest Arduino IDE in folder c:\Program Files (x86)\Arduino\.
Follow strict! the instructions as described: ...
If there are issues with step 5, then
• copy to folder \documents\Arduino\hardware\espressif\esp32\tools\dist
• cd ~/Documents/Arduino/hardware/espressif/esp32/tools/
• python

The ESP32 files must be located in: c:\Program Files (x86)\Arduino\hardware\espressif\
If not the case, then copy the espressif Folder to c:\Program Files (x86)\Arduino\hardware\.

To test the setup OK, start the Arduino IDE 1.8.0 (or higher):
select File > examples > Examples for the ESP32 Dev Module > WiFiScan and compile & run.
If running OK (which did), close the Arduino IDE and start the B4R IDE.

After connecting the ESP32, determine the COM Port.
Tools > Board Selector
Board: ESP32 Dev Module
Serial Port: COM12 Silicon Labs CP210x USB to UART Bridge - Note: COM port depends on system setup

Flashing B4R version 2.00 or higher
Build the circuit, do not connect Pin IO0 (= GPIO0) to Ground.
Compile the program from the B4R IDE (F5). If all OK, uploading is done automatically.

Flashing B4R version lower 2.00
This step is only required if using B4R version lower v2.00.
To flash programs from development environments, like Arduino IDE or B4R 1.8.0 (or higher).
Example B4R IDE:
• Pin IO0 (= GPIO0) to Ground
• B4R IDE Compile (F5) and upload. Wait till message "waiting for download" in the IDE LOg Tab appears.
• Pin IO0 (= GPIO0) NOT to Ground
• Press BOOT button and hold down
• Press EN button (enable) and hold down
• Release BOOT button
• Release EN button

If all goes well, the B4R IDE Log shows, like (using simple LED Blink program):
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3
waiting for download
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter.
>ets Jun 8 2016 00:22:57
configsip: 0, SPIWP:0x00
mode:DIO, clock div:1
entry 0x40080034
AppStart - LED Pin 2 blink every 2 seconds
CurrentState: 0
NewState: 1
CurrentState: 1

Return to “ESP32”

Who is online

Users browsing this forum: No registered users and 1 guest