why is uffs_FlashIsBadBlock reading the block twice?

57 views
Skip to first unread message

bowerymarc

unread,
Oct 16, 2013, 7:34:17 PM10/16/13
to uf...@googlegroups.com
i'm looking a the function in uffs_flash.c, uffs_FlashIsBadBlock(), and it reads the page once, and if that fails, it reads it again... why?

Ricky Zheng

unread,
Oct 17, 2013, 3:32:24 AM10/17/13
to uf...@googlegroups.com
Errrr ... it suppose to read the second page, I'll fix that.

The bad block mark could be in the first page or the second page.

Cheers,
Ricky.



On Thu, Oct 17, 2013 at 12:34 PM, bowerymarc <bower...@gmail.com> wrote:
i'm looking a the function in uffs_flash.c, uffs_FlashIsBadBlock(), and it reads the page once, and if that fails, it reads it again... why?

--
You received this message because you are subscribed to the Google Groups "UFFS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uffs+uns...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.
Visit this group at http://groups.google.com/group/uffs.
For more options, visit https://groups.google.com/groups/opt_out.

bowerymarc

unread,
Oct 17, 2013, 8:17:35 AM10/17/13
to uf...@googlegroups.com
Oh, so the second one should read page 1 rather than page 0, is that the fix?

Ricky Zheng

unread,
Oct 17, 2013, 6:34:35 PM10/17/13
to uf...@googlegroups.com
Yes that's the fix. It should be available on master branch by now.


On Fri, Oct 18, 2013 at 1:17 AM, bowerymarc <bower...@gmail.com> wrote:
Oh, so the second one should read page 1 rather than page 0, is that the fix?
Reply all
Reply to author
Forward
0 new messages