Page 1 of 1

how to create a namespace in NVS?

Posted: Mon Feb 11, 2019 7:28 pm
by mzimmers
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.

Re: how to create a namespace in NVS?

Posted: Wed Feb 13, 2019 12:00 am
by mzimmers
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.