NVS Flash

Adham Aboud
Posts: 48
Joined: Mon Apr 30, 2018 5:32 pm

NVS Flash

Postby Adham Aboud » Tue Dec 11, 2018 4:31 pm

Hello guys,

I'm using the nvs component from esp_idf, and I've the following situation, first I write a mount of data to a specific "namespace"
, after this I update the content of this data with less count of bytes. Do I need to erase the data in the namespace, to free unneeded space ?
To be clear again, as I said before the new data that I'm going to write is less than the old data in the namespace. So I need to free up the delta...

Regards,

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

Re: NVS Flash

Postby ESP_Sprite » Wed Dec 12, 2018 3:09 am

No, you do not need to do anything. NVS takes care of space management and garbage collection all by itself.

Who is online

Users browsing this forum: MikeMyhre and 131 guests