Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By linlun
#33176 Hi,

I have a couple of questions regarding the link script and SPI flash sizes.

First, in the smingcore MakeFile-project.mk the SPI_SIZE is defined, here you can easily change to a larger SPI flash, but what I can see the only change that happens is the SPIFF_SIZE is changed and that different parameters are set to esptool but no actual change to the link-file (eagle.app.v6.cpp.ld).

Is there some example .ld files for use of larger flash sizes?

Why is SPI_SIZE defined in the smingcore makefile and not in the project makefile, in my case not all my different projects use the same esp hardware?

Is is possible to manually set the spiff area size, in my case the application is large, but the spiff file system is very small, now it seems att a quite large area is reserved to spiff?

My dream would be to define the SPI size in the project specific make file together with how large spiff area is needed and after that the .ld script would be updated automatically at build time.

Regards Linus