Chat freely about anything...

User avatar
By EnfRoll
#10430 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?
User avatar
By EnfRoll
#10495 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)
User avatar
By bicli
#10518 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 :)