SPIFFS: default example gives wrong info about partition sizes

newsettler_AI
Posts: 112
Joined: Wed Apr 05, 2017 12:49 pm

SPIFFS: default example gives wrong info about partition sizes

Postby newsettler_AI » Wed Sep 18, 2019 3:28 pm

Hi,

I'm using next example:

https://github.com/espressif/esp-idf/tr ... age/spiffs

My default output:

Code: Select all

example: Initializing SPIFFS
example: Partition size: total: 896321, used: 502
Size of partition havent strictly defined, but why couple files with size ~15 bytes cunsumes 502 bytes?
I know that filesystem reqires some extra space for internal needes, but isn't that too much, more then x10 of files size itself?


And second question.

I have strictly define size of spiffs partition:

Code: Select all

# Name,   Type, SubType, Offset,  Size,     Flags
nvs,      data, nvs,     0x9000,   0x6000,
phy_init, data, phy,     0xf000,   0x1000,
factory,  app,  factory, 0x10000,  0x170000,
storage,  data, spiffs,  0x180000, 0x270000,
0x270000 = ‭2555904‬ bytes.

but here is output:

Code: Select all

example: Initializing SPIFFS
example: Partition size: total: 2342081, used: 502
2342081 = 0x‭23BCC1‬

Where from comes this number and what does it actually show?

WiFive
Posts: 2826
Joined: Tue Dec 01, 2015 7:35 am

Re: SPIFFS: default example gives wrong info about partition sizes

Postby WiFive » Wed Sep 18, 2019 6:46 pm

https://github.com/pellepl/spiffs/blob/ ... /TECH_SPEC

92% of your partition usable for data

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 19 guests