From 2f84bc488ec662dc3e04d3e73c34eeae9909cf84 Mon Sep 17 00:00:00 2001 From: lumapu Date: Sat, 18 May 2024 02:05:06 +0200 Subject: [PATCH] 0.8.119 * update offsets in python script --- manual/factory_firmware.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/manual/factory_firmware.md b/manual/factory_firmware.md index e96cf575..f5cd3d91 100644 --- a/manual/factory_firmware.md +++ b/manual/factory_firmware.md @@ -1,4 +1,4 @@ -# Generate factory firmware +# Generate factory firmware (ESP32) If the firmware should already contain predefined settings this guide will help you to compile these into a single binary file. @@ -36,11 +36,23 @@ Choose your prefered environment and build firmware as usual. Once the process i ## Upload to device +Navigate to the firmware output directory `src/.pio/build/[ENVIRONMENT]/` and open a terminal. + +### ESP32 + +Python: +`esptool.py -b 921600 write_flash --flash_mode dio --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.factory.bin` + +Windows: +`esptool.exe -b 921600 write_flash --flash_mode dio --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.factory.bin` + +### ESP32-S3 (OpenDTU Fusion Board) + Python: -`esptool.py -b 921600 write_flash --flash_mode dio --flash_size detect 0x10000 firmware.factory.bin` +`esptool.py -b 921600 write_flash --flash_mode dio --flash_size detect 0x0 firmware.factory.bin` Windows: -`esptool.exe -b 921600 write_flash --flash_mode dio --flash_size detect 0x10000 firmware.factory.bin` +`esptool.exe -b 921600 write_flash --flash_mode dio --flash_size detect 0x0 firmware.factory.bin` For a 4MB flash size the upload should be finished within 22 seconds.