-->
Page 1 of 3

Internal use of SPIFFS

PostPosted: Sun Feb 22, 2015 1:23 pm
by EnfRoll
I want to use SPIFFS in my own project, but I have problems with including it. There is some example of using SPIFFS without NodeMCU firmware?

Re: Internal use of SPIFFS

PostPosted: Mon Feb 23, 2015 4:06 am
by EnfRoll
Somebody knows?

Re: Internal use of SPIFFS

PostPosted: Mon Feb 23, 2015 5:41 am
by EnfRoll
Now I get this error:

Code: Select all15:40:11 **** Build of configuration Default for project SPIFFS ****
mingw32-make.exe -f D:/WorkSpace/SPIFFS/Makefile rebuild
CC driver/uart.c
CC user/user_main.c
CC spiffs/spiffs.c
CC spiffs/spiffs_hydrogen.c
CC spiffs/spiffs_check.c
CC spiffs/spiffs_nucleus.c
CC spiffs/spiffs_gc.c
CC spiffs/spiffs_cache.c
AR build/app_app.a
LD build/app.out
c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: build/app.out section `.text' will not fit in region `iram1_0_seg'
collect2.exe: error: ld returned 1 exit status
D:/WorkSpace/SPIFFS/Makefile:212: recipe for target 'build/app.out' failed
mingw32-make.exe: *** [build/app.out] Error 1

15:40:21 Build Finished (took 9s.645ms)

Re: Internal use of SPIFFS

PostPosted: Mon Feb 23, 2015 11:10 am
by bicli
I'll be honest with you, I have no idea about spifss whatsoever. But the problem you are having is that your code doesn't fit into the ram. Put "ICACHE_FLASH_ATTR" to your function definition like: void ICACHE_FLASH_ATTR Init_TCP_Server( void ), which runs your code from flash.
Good luck :)