Hooray!!
I found the problem. Your package uses the 80MHz SPI speed. Flashing with the 40MHz and using corresponding bootloader yielded success!
So what I did was:
esptool --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq **40m** --flash_size detect 0xe000 **boot_app0.bin** 0x1000 **bootloader/bootloader_dio_40m.bin** 0x10000 ESP32_OpenMQTTGateway_V092_BLE.bin 0x8000 ESP32_OpenMQTTGateway_V092_BLE_partitions.bin
Where
boot_app0.bin
is pointing to the bin in the Arduino library (~/.arduino15/packages/esp32/hardware/esp32/1.0.4/tools/partitions/boot_app0.bin
), and- the
bootloader
directory points to the Arduino library. In my case:~/.arduino15/packages/esp32/hardware/esp32/1.0.4/tools/sdk/bin
TIP: you may have to push the BOOT button after starting this command …
Restart the device, and then in the serial monitor:
rst:0xc (SW_CPU_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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
mounting FS…
mounted file system
*WM: [3] allocating params bytes: 20
*WM: [2] Added Parameter: server
*WM: [2] Added Parameter: port
*WM: [2] Added Parameter: user
*WM: [2] Added Parameter: pass
*WM: [1] AutoConnect
*WM: [2] ESP32 event handler enabled
*WM: [2] Connecting as wifi client…
*WM: [1] STA static IP:
*WM: [2] setSTAConfig static ip not set
*WM: [3] WIFI station disconnect
*WM: [1] No saved credentials, skipping wifi
*WM: [2] Connection result: WL_NO_SSID_AVAIL
*WM: [3] lastconxresult: WL_NO_SSID_AVAIL
*WM: [1] AutoConnect: FAILED
*WM: [2] AccessPoint set password is VALID
*WM: [1] your_password
*WM: [3] WIFI station disconnect
*WM: [3] WiFi station enable
*WM: [2] Disabling STA
*WM: [2] Enabling AP
*WM: [1] StartAP with SSID: OpenMQTTGateway
*WM: [1] AP IP address: 192.168.4.1
*WM: [3] setupConfigPortal
*WM: [1] Starting Web Portal
*WM: [3] dns server started with ip: 192.168.4.1
*WM: [2] HTTP server started
*WM: [2] WiFi Scan ASYNC started
*WM: [2] Config Portal Running, blocking, waiting for clients…
*WM: [2] WiFi Scan ASYNC completed in 3020 ms
*WM: [2] WiFi Scan ASYNC found: 7