pvvx wrote:How to find out the available disk space to save the maximum file?
There is no ZBasic System Library routine to get the SPIFFS free space. That is a good thing to add.
It is possible to add C code to a ZBasic app so one could add functionality as needed. However, the SPIFFS control structure currently isn't public - another good idea to add.
pvvx wrote:SPIFFS = gruesome file system
If you have a better one, you can add it to your ZBasic app and use it in place of SPIFFS. You would need to define your own interface to it but you can make external functions available to ZBasic by importing the definitions. This advanced topic is discussed in
section 6.8 of the ZBasic Language Reference.
pvvx wrote:Which option for W25Q128FV Flash?
I misstated the option to specify the Flash size, it is actually "Option DeviceParameter FlashSize" and for the Flash chip you referred to it would be
Code: Select allOption DeviceParameter FlashSize "16M"
Other compiler directives are explained in the manuals.