-->
Page 1 of 1

How to select between different SPI flash sizes

PostPosted: Thu Nov 05, 2015 3:44 pm
by linlun
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

Re: How to select between different SPI flash sizes

PostPosted: Mon Nov 23, 2015 12:29 am
by Venkatesh
You can define those properties/constants inside your example makefile. The make file which is included from 'Sming' has ? before a property definition.

Or easy way, just use export command before using Make file in your example.