Flashing precompiled binaries to an ESP32S3 using esptool
Posted: Mon May 22, 2023 1:11 pm
Hello, I am encountering issues when I try to flash precompiled binaries to an ESP32S3 using esptool
The command I am using inside the folder that contains the following files
is:
inside a folder that contains the following files:
The sdkconfig.json file is autogenerated from the build process and fulfils all syntax requirements for JSON files.
In the terminal I get the following error message:
I would be really glad if anyone can make some suggestions why this process documented on this part in the Espressif Documentation https://docs.espressif.com/projects/esp ... -arguments is giving me so much headache
The command I am using inside the folder that contains the following files
Code: Select all
bootloader
bootloader.bin
components_test_app.bin
components_test_app.elf
config

sdkconfig.json
flasher_args.json
partition_table
partition-table.bin
Code: Select all
esptool.py --chip esp32s3 write_flash @flasher_args.json
The sdkconfig.json file is autogenerated from the build process and fulfils all syntax requirements for JSON files.
In the terminal I get the following error message:
Code: Select all
esptool esp32s3 write_flash { write_flash_args : [ --flash_mode, dio, --flash_size, 8MB, --flash_freq, 80m ], flash_settings : { flash_mode: dio, flash_size: 8MB, flash_freq: 80m }, flash_files : { 0x0 : bootloader/bootloader.bin, 0x10000 : components_test_app.bin, 0x8000 : partition_table/partition-table.bin, 0xd000 : ota_data_initial.bin }, bootloader : { offset : 0x0, file : bootloader/bootloader.bin, encrypted : false }, app : { offset : 0x10000, file : components_test_app.bin, encrypted : false }, partition-table : { offset : 0x8000, file : partition_table/partition-table.bin, encrypted : false }, otadata : { offset : 0xd000, file : ota_data_initial.bin, encrypted : false }, extra_esptool_args : { after : hard_reset, before : default_reset, stub : true, chip : esp32s3 } }
usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}]
[--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt]
[--encrypt-files <address> <filename> [<address> <filename> ...]] [--ignore-flash-encryption-efuse-setting] [--force]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: Address "{" must be a number