ext_flash_fatfs problem with 256kb memory

Posts: 10
Joined: Thu Feb 06, 2020 9:48 am

ext_flash_fatfs problem with 256kb memory

Postby AleGiaco » Thu Jun 10, 2021 9:26 am

I want to use an external memory of 256kb so I'm trying the example ext_flash_fatfs but it gives me error in mounting:

Code: Select all

I (348) spi_flash: detected chip: generic
I (348) spi_flash: flash io: dio
I (348) example: Initialized external Flash, size=256 KB, ID=0xb9fb81
I (358) example: Adding external Flash as a partition, label="storage", size=256
I (368) example: Listing data partitions:
I (368) example: - partition 'nvs', subtype 2, offset 0x9000, size 24 kB
I (378) example: - partition 'phy_init', subtype 1, offset 0xf000, size 4 kB
I (388) example: - partition 'storage', subtype 129, offset 0x0, size 256 kB
I (398) example: Mounting FAT filesystem
E (658) wl_partition: erase_range - start_address=0x0003d000, size=0x00001000, r
E (658) wl_flash: initSections(294): result = 0x00000105
E (658) wl_flash: init(187): result = 0x00000105
E (658) wear_levelling: wl_mount: init instance=0x00000000, result=0x105
E (668) vfs_fat_spiflash: failed to mount wear levelling layer. result = 261
E (678) example: Failed to mount FATFS (ESP_ERR_NOT_FOUND)
The only things changed from te original source are obviously miso, mosi, cs and clock, and I added the ext_flash->size before the esp_flash_init.
I'm using IDF 4.0.2

I look forward to your replies and I thank you in advance for your help.

Who is online

Users browsing this forum: Google [Bot] and 52 guests