I’m trying to flash an esp32 with the pre-built binaries provided with the 0.9.2 release. I’ve tried two different esp32 dev boards and both enter a boot loop once flashed:
I’m able to reproduce the same behaviour. This seems due to the fact that we are not providing the min spiffs partition table when flashing. The issue is that for the moment, I don’t know how to provide it except by using platformio and the normal build process.
Note this special partition table is needed due to the big size of ble library.
If we analyse what the arduino IDE is doing when uploading a binary: C:\Users\Florian\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe --chip esp32 --port COM4 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\Florian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2/tools/partitions/boot_app0.bin 0x1000 C:\Users\Florian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2/tools/sdk/bin/bootloader_dio_80m.bin 0x10000 C:\Users\Florian\AppData\Local\Temp\arduino_build_47342/main.ino.bin 0x8000 C:\Users\Florian\AppData\Local\Temp\arduino_build_47342/main.ino.partitions.bin
I am new to OpenMQTTGateway and trying to follow these instructions for making an RF bridge by flashing the pre-made binaries. The Bluetooth zip file contains multiple files as also depicted in OpenMQTTGateway v1.4.0. The RF file only one binary.
Thanks for the quick reply and support. I was not successful,so as an excercise I uploaded the complete BLE version, using esspressif tool, as depicted in the picture.
Unfortunately when restarting the module, I get a comparable repeated message in Arduino’s serial interface as reported by kwijibo007:
bart@bart-Satellite-P200:~/Downloads/ESP32_OpenMQTTGateway_V092_BLE$ ./fla.sh
esptool.py v2.1
Connecting…………………___
Chip is ESP32D0WDQ6 (revision (unknown 0xb))
Enabling default SPI flash mode…
Configuring flash size…
Auto-detected Flash size: 4MB
Erasing flash…
Compressed 8192 bytes to 47…
Took 0.08s to erase flash block
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 717.4 kbit/s)…
Hash of data verified.
Erasing flash…
Compressed 15328 bytes to 9994…
Took 0.11s to erase flash block
Wrote 15328 bytes (9994 compressed) at 0x00001000 in 1.0 seconds (effective 117.2 kbit/s)…
Hash of data verified.
Erasing flash…
Compressed 1702640 bytes to 983018…
Took 4.35s to erase flash block
Wrote 1702640 bytes (983018 compressed) at 0x00010000 in 99.2 seconds (effective 137.3 kbit/s)…
Hash of data verified.
Erasing flash…
Compressed 3072 bytes to 143…
Took 0.05s to erase flash block
Wrote 3072 bytes (143 compressed) at 0x00008000 in 0.1 seconds (effective 232.4 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting…
bart@bart-Satellite-P200:~/Downloads/ESP32_OpenMQTTGateway_V092_BLE$
Then scanning for Wifi does not show an access point, thus looking via Arduino IDE what is happening and we see:
Kudos for you!
Made the changes you listed and it works! (Had to get around the installation challenges & quirks of VSCode, PlatformIO and GIT though. In the end, there is nothing like a complete & fresh install )
Thanks a lot for your findings!
Really made my day
@1technophile
Thanks a lot for your project, didn’t have a chance to test it completely but sounds very promising so far.
Just a quick question to clarify my thoughts:
When/If I’ll build new firmware image using Platformio, do I understand correct that it will be replacement for ESP32_OpenMQTTGateway_V092_BLE and all other 3 bins I should leave the same including the following ESP32_OpenMQTTGateway_V092_BLE_partitions.bin ?
Thank you in advance
Thanks for fast reply.
I’m afraid I’m too new to the microprocessors world to know what is "min_spiffs partition scheme".
But as soon as my original question was purely related to OMG, can you confirm or disprove that esp32dev-all instead of esp32dev-ble I’m currently using does correspond to required partition schema, please?
Thanks for updated manual and provided binaries.
Just probably the last minor question: do you know how to upload compiled binary to the ESP32 OverTheAir? I suppose If PlatfomIO can do that it always can be done using Curl or something similar.
Thank you in advance
Regards Sergiy.