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

CKiamy
Posts: 19
Joined: Wed Nov 23, 2022 3:01 pm

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

Postby CKiamy » Wed Jan 04, 2023 1:06 pm

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

CKiamy
Posts: 19
Joined: Wed Nov 23, 2022 3:01 pm

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

Postby CKiamy » Tue Feb 28, 2023 9:46 am

bump

ESP_Sprite
Posts: 9746
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » 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.

CKiamy
Posts: 19
Joined: Wed Nov 23, 2022 3:01 pm

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

Postby CKiamy » Wed Mar 01, 2023 3:59 pm

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.

Who is online

Users browsing this forum: No registered users and 73 guests