how to create a namespace in NVS?

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

how to create a namespace in NVS?

Postby mzimmers » Mon Feb 11, 2019 7:28 pm

I'm trying to prep my application for production. Upon booting, my app looks for a namespace to open:

Code: Select all

    err = nvs_open(SERIAL_NAMESPACE, NVS_READONLY, &m_handleSerial);
I've read the docs on the NVS library, but I don't understand how to create the namespace I need to read. My config.csv file will look something like this:

Code: Select all

app,namespace,  
serial_no,data,string
mac_addr,data,hex2bin
label,data,string
I'm sure I'm overlooking something obvious...thanks for any help.

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

Re: how to create a namespace in NVS?

Postby mzimmers » Wed Feb 13, 2019 12:00 am

So, after re-reading the docs, I realized I was confusing the standard NVS partition generation with the mass mfg utility. As the mass mfg script seems buggy, I'm skipping it for now and working with the standard NVS partition generator.

So...can I do this twice, with different .bin files? I'd like to make one namespace readonly, and another writable.

Who is online

Users browsing this forum: Michaelboeding and 100 guests