Flashing precompiled binaries to an ESP32S3 using esptool

fabianlc
Posts: 1
Joined: Wed May 10, 2023 7:58 am

Flashing precompiled binaries to an ESP32S3 using esptool

Postby fabianlc » 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

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
is:

Code: Select all

esptool.py --chip esp32s3 write_flash @flasher_args.json
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:

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
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

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: Flashing precompiled binaries to an ESP32S3 using esptool

Postby ESP_Roland » Tue May 23, 2023 12:17 pm

The documentation refers to the text flash_args files. Notice that there are no file extension used there. You are using the JSON file, so the formatting is wrong.

Who is online

Users browsing this forum: No registered users and 101 guests