I have purchased an unconfigured Huzzah ESP32 with a Bosch BME688 development board, and wish to run an experiment similar to the example of coffee/air.
In order to do so I have downloaded BME688_Development_Kit _Software _v2.0.9 - there seems to be little documentation on how to program the example from Linux, however I've reverse engineered the Flash.bat file and have run:
python3 esptool.py --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 esp32/2.0.3/tools/partitions/boot_app0.bin 0x1000 esp32/2.0.3/tools/sdk/esp32/bin/bootloader_dio_80m.bin 0x10000 bme68x_demo_sample.ino.bin 0x8000 bme68x_demo_sample.ino.partitions.bin
esptool.py v3.3-dev
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: e0:5a:1b:0d:10:ec
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x0014cfff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 545.1 kbit/s)...
Hash of data verified.
Compressed 17120 bytes to 11841...
Wrote 17120 bytes (11841 compressed) at 0x00001000 in 0.5 seconds (effective 267.3 kbit/s)...
Hash of data verified.
Compressed 1294528 bytes to 782727...
Wrote 1294528 bytes (782727 compressed) at 0x00010000 in 12.9 seconds (effective 802.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.1 seconds (effective 337.0 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
However when I connect to the board via serial (screen /dev/ttyUSB0 115200) I see:
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:12812
load:0x40080400,len:3032
entry 0x400805e4
Error code = -1
Please may someone advise whether I am incorrectly flashing the example? And if so, where I can find corrected instructions to flash the Huzzah ESP32 correctly?
The Huzzah board: https://www.digikey.co.uk/en/products/detail/adafruit-industries-llc/3591/8119805
The BME68 Dev board: https://www.digikey.co.uk/en/products/detail/bosch-sensortec/EVALUATION-KIT-BOARD-BME688/14617513