Returns the total number of bytes in the SPI flash that are available to Squirrel
Integer — the number of bytes of storage in the SPI flash available for user code use
This method returns the size in bytes of the SPI flash storage area available to Squirrel. This is not the actual capacity of the attached SPI flash device as some capacity is reserved for impOS™ usage. How much storage is reserved for the operating system depends on the type of imp being used.
Please see the Design with imp guide for your chosen module to learn about imp-specific SPI flash size requirements.
Any SPI flash storage accessible to Squirrel is accessed via hardware.spiflash.