Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
15
File.Mount
Type
Function returning Integer
Invocation
File.Mount(startAddr, size)
Parameter
Method
Type
Description
startAddr
ByVal
integral
The Flash address for the start of the file system.
size
ByVal
integral
The size, in bytes, of the file system.
Discussion
Before any SPIFFS operations can be performed, the file system must be mounted, giving the address
and size of a portion of the Flash chip that is otherwise unused.  The address must be on a 1024 byte
block boundary and the size must be an integral multiple of 1024.  The area to be used for the file system
must either have all its bytes set to &Hff (erased) or it must be loaded with a SPIFFS image prepared, for
example, with the spiffy.exe utility.  The esp_tool.exe utility can be used to erase a region and to flash it
with a SPIFFS image.
Previous page Top Next page