Hello I am modifying the esp-serial-flaser and I would like to know if there is a way to obtain the application's address. Almost always the bootloader address and the partition table address is the same. But how could I obtain the address of where to flash the firmware.bin dynamically?
Thank you
Get the value of the addresses dynamically
-
- Posts: 1709
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Get the value of the addresses dynamically
Code: Select all
build/flasher_args.json
Code: Select all
build/flash_args
Re: Get the value of the addresses dynamically
Thank you for answering, but could you give a more comprehensive response or an example where this is used?
Thank you
Thank you
-
- Posts: 1709
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Get the value of the addresses dynamically
The build system writes the FLASH addresses for the binaries into these files in the build directory. There are the flash_*_args files which are passed to esptool.py by idf.py flash and the same information is also made available as a .json file for third-party software.
The .bin files themselves do not contain this meta-information. You could probably also parse the partition table (binary) and infer from partition names/types which binary is supposed to go where.
The .bin files themselves do not contain this meta-information. You could probably also parse the partition table (binary) and infer from partition names/types which binary is supposed to go where.
Who is online
Users browsing this forum: No registered users and 88 guests