Page 1 of 1

Flashing NVS partition .bin file into esp32 device using JTAG.

Posted: Wed Jan 04, 2023 1:06 pm
by CKiamy
Hello everyone,

for my application I would like to flash a costumized NVS partition table inside my esp32 device. The way I do this is I first create a csv file containing the required namespaces and data for my application.

I then proceed to use the nvs_partition_gen.py script that espressif provides to convert this csv file into a bootable .bin file.

Afterwards, I use parttool.py (which in itself calls esp_tool.py) to flash the nvs.bin file to the esp32 via UART:


parttool.py --port COM1 write_partition --partition-name=nvs --input "nvs.bin"


Is there a way to recreate this steps using only a jtag tool (ESP_PROG, Jlink...) without needing to use the rx/tx terminals of the esp32?

Best regards
Carlos

Re: Flashing NVS partition .bin file into esp32 device using JTAG.

Posted: Tue Feb 28, 2023 9:46 am
by CKiamy
bump

Re: Flashing NVS partition .bin file into esp32 device using JTAG.

Posted: Wed Mar 01, 2023 12:42 am
by ESP_Sprite
You could likely do it using OpenOCD, but you'd need to specify the offset in flash you're writing to rather than the partition name.

Re: Flashing NVS partition .bin file into esp32 device using JTAG.

Posted: Wed Mar 01, 2023 3:59 pm
by CKiamy
ESP_Sprite wrote:
Wed Mar 01, 2023 12:42 am
You could likely do it using OpenOCD, but you'd need to specify the offset in flash you're writing to rather than the partition name.
Thank you! I am sorry if I am bumping my posts, I am quite new to development and it is hard to formulate good questions sometimes.