You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to work with mtd_mapper. As a test I have changed the filesystem example (first lines in main) as:
#if defined(MTD_0) && \
(defined(MODULE_SPIFFS) || defined(MODULE_LITTLEFS) || \
defined(MODULE_LITTLEFS2) || defined(MODULE_FATFS_VFS))
/* spiffs and littlefs need a mtd pointer
* by default the whole memory is used */
mtd_mapper_parent_t parent = MTD_PARENT_INIT(MTD_0);
mtd_mapper_region_t region = {
.mtd = {
.driver = &mtd_mapper_driver,
.sector_count = MTD_0->sector_count,
.pages_per_sector = MTD_0->pages_per_sector,
.page_size = MTD_0->page_size,
},
.parent = &parent,
.sector = 0,
};
fs_desc.dev = MTD_0;
fs_desc.dev = ®ion.mtd;
#endif
(I switch the two last lines to go from MTD_0 to mtd_mapper).
When I compile and test this for MTD_0 the sample works, if I use the mtd_mapper the sample gets in a read-loop (reading the first page of the MTD_0). I am working on a esp8266.
As I am quite new to riot, is the mtd_mapper definition correct ? If so, how can I avoid it going into a read-loop ?
The text was updated successfully, but these errors were encountered:
Description
I am trying to work with mtd_mapper. As a test I have changed the filesystem example (first lines in main) as:
(I switch the two last lines to go from MTD_0 to mtd_mapper).
When I compile and test this for MTD_0 the sample works, if I use the mtd_mapper the sample gets in a read-loop (reading the first page of the MTD_0). I am working on a esp8266.
As I am quite new to riot, is the mtd_mapper definition correct ? If so, how can I avoid it going into a read-loop ?
The text was updated successfully, but these errors were encountered: