Readme

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

Readme

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.

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

References
Overview:
https://espressif.com/en/products/hardw ... 2/overview
Resources:
http://www.espressif.com/en/products/ha ... /resources
Forum:
http://www.esp32.com
Development Framework:
https://github.com/espressif
Arduino core for the ESP32:
https://github.com/espressif/arduino-esp32
https://github.com/espressif/arduino-esp32/tree/master
Package information which is used to install/update by script get.py in \tools\ folder:
https://github.com/espressif/arduino-es ... 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: https://github.com/espressif/arduino-es ... windows.md
If there are issues with step 5, then
• copy xtensa-esp32-elf-win32-VERSION.zip to folder \documents\Arduino\hardware\espressif\esp32\tools\dist
• cd ~/Documents/Arduino/hardware/espressif/esp32/tools/
• python get.py

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.

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
(DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
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.
OK
>ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3ffc0008,len:4
load:0x3ffc000c,len:1708
load:0x40078000,len:3124
load:0x40080000,len:256
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