nvs_partition_config.csv now doesn't like quotation marks

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

nvs_partition_config.csv now doesn't like quotation marks

Postby mzimmers » Thu Sep 16, 2021 6:54 pm

Hi all -

I'm starting on a new ESP32 project. New development environment is Linux. I grabbed a copy of a nvs_partition_config.csv file from an older project which was developed on Windows 10.

In my original file, all string values were contained in quotes, eg:

Code: Select all

NTP_SERVER,data,string,"pool.ntp.org"
This worked fine in my old application, but my new one retains the quotes when I retrieve values from the partition.

Is this something that was changed in a recent version of the IDF tools, or is a Linux/Windows thing, or just something weird?

I guess I'm wondering whether it's safe to remove the quotations from the file.

Thanks...

User avatar
fasani
Posts: 195
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: nvs_partition_config.csv now doesn't like quotation marks

Postby fasani » Fri Sep 17, 2021 12:45 pm

I think you are safe removing the quotes. If you look at the default partitions they do not use quotes at all:

https://github.com/espressif/esp-idf/tr ... tion_table

Other than that why in Windows is different I don't know, it shouldn't be, but truth to be told I don't use Windows since about 15 years.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

User avatar
mbratch
Posts: 294
Joined: Fri Jun 11, 2021 1:51 pm

Re: nvs_partition_config.csv now doesn't like quotation marks

Postby mbratch » Fri Sep 17, 2021 2:14 pm

fasani wrote:
Fri Sep 17, 2021 12:45 pm
I think you are safe removing the quotes.
But standard CSV format permits the quotes (intended, for example, to handle the case where the item may itself include a comma, in the general case). So ESP-IDF tools don't permit standard CSV for the partition table?

Who is online

Users browsing this forum: No registered users and 80 guests