In functions uffs_TreeInit(uffs_Device *dev),
dev->tree.erased_count = 0;
dev->cfg.reserved_free_blocks=MINIMUN_ERASED_BLOCK
and
MINIMUN_ERASED_BLOCK= 2
so that this condions (if (obj->dev->tree.erased_count < obj->dev->cfg.reserved_free_blocks) ) is true and showing error
so can we change, dev->tree.erased_count = 0; to dev->tree.erased_count = 3;
???
Also, for (i = 0; i < FILE_NODE_ENTRY_LEN; i++) {
dev->tree.file_entry[i] = EMPTY_NODE;
}
where EMPTY_NODE=0xffff
and functions uffs_TreeFindFileNodeByName returning NULL bcz
what should can i do
???