Page 1 of 1

VFS mount failed on latest master branch

Posted: Tue Nov 06, 2018 12:25 pm
by snahmad75
Hi,

The examples and unit test works but my application does not.

My application was working with master branch code few month back.

I notice using latest code my generate bin size is now reduce to 533 kb. previously it was 1235 kb.
rest of the application works but not spi flash.

My partition_table.

# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
ota_0,app,ota_0,0x10000,1856K,
ota_1,app,ota_1,0x1e0000,1856K,
storage,data,fat,0x3b0000,128K,


Debug logs.


(225) VFS: FATFS_VFS::mount(CONFIG_WL_SECTOR_SIZE=512)
D (225) VFS: FATFS_VFS::mount(/spiflash,storage)
D (225) wl_flash: config - config result: state_size=0x00001000, cfg_size=0x00001000, addr_cfg=0x0001f000, addr_state1=0x0001d000, addr_state2=0x0001e000, flash_size=0x0001c000
D (245) wl_flash: init - config ID=2, stored ID=2, access_count=0, block_size=4096, max_count=16, pos=0, move_count=0x00000000
D (255) wl_flash: init starts: crc1= 0xc9e9b6db, crc2 = 0xc9e9b6db, this->state.crc= 0xc9e9b6db, state_copy->crc= 0xc9e9b6db, version=2, read_version=2
D (265) wl_flash: init: crc1=0xc9e9b6db, crc2 = 0xc9e9b6db, result= 0x00000000
D (275) wl_flash: recoverPos - this->state.pos= 0x00000002, position= 0x00000002, result= 0x00000000, max_pos= 0x0000001d
D (285) wl_flash: init - move_count= 0x00000000
D (295) wl_flash: read - src_addr= 0x0001a000, size= 0x00000010
D (295) vfs_fat_spiflash: using pdrv=0
D (305) wl_flash: read - src_addr= 0x00000000, size= 0x00000200
D (305) VFS: FATFS_VFS::mount(m_wl_handle=0)
D (315) vfs_fat: vfs_fat_open: fresult=6
E (315) W2K: Error=-198 with text=fopen(/spiflash/index.html) failed



Thanks,
Naeem

Re: VFS mount failed on latest master branch

Posted: Tue Nov 06, 2018 11:14 pm
by snahmad75
an idea?