After (finally) receiving a ESP32, sharing first experience using B4R 1.8 BETA #2
#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
Followed
strict the instructions as described:
https://github.com/espressif/arduino-esp32/blob/master/doc/windows.md
If there are issues with step 5, then
* copy xtensa-esp32-elf-win32-VERSION.zip to folder <users>\documents\Arduino\hardware\espressif\esp32\tools\dist. The version used 1.22.0-59.
* cd ~/Documents/Arduino/hardware/espressif/esp32/tools/
* python get.py
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 B4R IDE.
#B4R 1.8 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
For the ESP32-DevKitC, to flash programs from development environments, like Arduino IDE or B4R 1.8.0 (or higher).
Example B4R IDE:
* Pin IO0 (= GPIO0) to Ground
* Compile and upload. Wait till message "waiting for download" in the B4R 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
IO, 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
...
#Issues
After the simple LED blink example, did not came any further as errors occurred as described in Post #1.
- Tests not working, e.g. BMP180 = error network connection, after unplugging the BMP180, network got connected),
- LED control via B4RSerialconnection = error WiFiClient.cpp:196 available(): 9
Will stop further testing for now, till any updates available.
Question:
Beside B4R Beta updates, not clear how the ESP32 files (as installed following the instructions) will be updated.