sfranzyshen wrote:This may sound stupid ... but do you need the spi flash expansion ... to use any of the webbase?
The current limit web-files-drive - 250 files.
The maximum size of the disk when using W25Q128 = 16252928 bytes (15,5 Mbytes)
No other restrictions.
Web WriteSpeed FlashDisk ~150..175 Kbytes/sec. 15,5 Mbytes max 100 sec (QSPI 80Mhz, CPU 160 MHz, 3.3V, +25C )
In SDK 0.9.5 and GD25Q40 flash:
WEBFS1.h:
#define WEBFS_DISK_ADDR_MINFLASH 0x0a000
size disk = 0x40000-0x0a000 = 221184 bytes
uint32 disk_max_size = spi_flash_real_size();
if(disk_max_size > SIZE_MIN_FLASH) {
disk_max_size -= SIZE_MIN_FLASH;
pupload->faddr = WEBFS_DISK_ADDR_BIGFLASH;
}
else {
disk_max_size = SIZE_MIN_FLASH/2 - WEBFS_DISK_ADDR_MINFLASH;
pupload->faddr = WEBFS_DISK_ADDR_MINFLASH;
}