Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
I have created a NVS region to save module settings. I followed the example that was linked by syscfg, and it compiles OK.
my save command that triggers this first displays the content, so it starts with a
nvs_read() into a buffer.
When I examine the buffer I find some data, but I have not written into that region, so I expected
to see all 0xff. Looking at the map file, I can see the nvs region with adresses *almost* at the end of my code.
Do I need to locate the region OUTSIDE my image, why does the sysconfig not locate the region
outtside of my code and data? I thougt it reserved "unwritten" space. Please enlighten me...
Gullik
Update: I saw some reference to #define NVS_REGION_BASE 0x48000
I tried to enter this in syscfg
Region type Generated
Region Base 0x48000
Region size 0x2000
I interpret this that I should be able to control the placement in flash.
However, this does not work, and nvs read returns the same data != 0xff........
So, how to do it?