how to config the spiffs ?
Posted: Tue Nov 17, 2015 1:47 am
Hi all
(RTOS SDK)
i trying to using spiffs to store a html file for http server.
but i don't know what the parameter mean and what vaule should be config?
I am follow the github:https://github.com/pellepl/spiffs/blob/master/docs/TECH_SPEC
but there are so many thing confused me ;
1. why does the block size have two type :16KB and 64KB?
2. how does the SPIFFS_PHYS_ADDR doing the offset? is that related eagle.app.v6.ld file setting? i don't know where is spiffs begin and where is it end ,when i give a vaule of this parameter
3. does the logic block should be only as 128KB?
4. as the spech noting ram buff size should be two times of logic block, why does the test code showing us like that “#define CACHE_BUF_SIZE (LOG_PAGE + 32)*8 ” what is that mean? should we set “#define CACHE_BUF_SIZE (LOG_PAGE)*2”???
why does add 32*8 ???
BR
(RTOS SDK)
i trying to using spiffs to store a html file for http server.
but i don't know what the parameter mean and what vaule should be config?
I am follow the github:https://github.com/pellepl/spiffs/blob/master/docs/TECH_SPEC
but there are so many thing confused me ;
1. why does the block size have two type :16KB and 64KB?
2. how does the SPIFFS_PHYS_ADDR doing the offset? is that related eagle.app.v6.ld file setting? i don't know where is spiffs begin and where is it end ,when i give a vaule of this parameter
3. does the logic block should be only as 128KB?
4. as the spech noting ram buff size should be two times of logic block, why does the test code showing us like that “#define CACHE_BUF_SIZE (LOG_PAGE + 32)*8 ” what is that mean? should we set “#define CACHE_BUF_SIZE (LOG_PAGE)*2”???
why does add 32*8 ???
BR