I have created a hex file using esptool.py using the following command:
esptool.py --chip ESP32 merge_bin --format hex -o ${CMAKE_BINARY_DIR}/22143V${CI_BUILD_TAG}R${CI_COMMIT_SHORT_SHA}.hex --flash_mode dio --flash_size 4MB 0x1000 ${CMAKE_BINARY_DIR}/bootloader/bootloader.bin 0x9000 ${CMAKE_BINARY_DIR}/partition_table/partition-table.bin 0xe000 ${CMAKE_BINARY_DIR}/ota_data_initial.bin 0x20000 ${APP_BINARY}
It shows successful, now how do I use esptool.py to flash this hex?
I have tried a few things, but none have been successful. Either I have the wrong arguments or if it does happen to load, it just flashes the hex like it is a binary file and then sends the esp32 into a boot loop.
Thank you
esptool.py and using hex format files
-
- Posts: 10
- Joined: Thu Mar 05, 2020 1:24 pm
Re: esptool.py and using hex format files
If it is a correct hex format, write_flash will work using:
esptool.py --port /dev/ttyUSB1 write_flash --flash_mode dio --flash_size 4MB 0x0 ${CMAKE_BINARY_DIR}/22143V${CI_BUILD_TAG}R${CI_COMMIT_SHORT_SHA}.${FORMAT}
esptool.py --port /dev/ttyUSB1 write_flash --flash_mode dio --flash_size 4MB 0x0 ${CMAKE_BINARY_DIR}/22143V${CI_BUILD_TAG}R${CI_COMMIT_SHORT_SHA}.${FORMAT}
Who is online
Users browsing this forum: No registered users and 393 guests