There are no complete examples because that would require a lot of code
beyond the scope of yaffs.
There are many places you could have gone wrong. Did you set up the device
correctly? Do you have errors in the driver? Whenever you get an error
return there is an error code available via:
int yaffs_get_error(void);
const char *yaffs_error_to_str(int err);
Also, for getting going it is worth setting the yaffs_trace_mask to get
more info.
-- Charles
On Wed, Jul 24, 2013 at 11:57 PM, amin assar <
amin_8460@yahoo.com> wrote:
> Hi
> I am using yaffs2 in a board including SLC NANDFLASH and ARM
> micro-controller. I use no OS so I handle all of the codes by myself.
> Unfortunately, I couldn't find complete document to implement yaffs, but
> I've tried to understand the details using available documents and codes.
> My problem is that when I run the code yaffs_mount() return "-1". Where
> did I do wrong?
> "
> yaffs_start_up();
> i=yaffs_mount("/nand");
> "
> Is there any complete example for using yaffs with NANDFLASH without OS?
>
> Thanks for any help.
> Amin
>
> _______________________________________________
> yaffs mailing list
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>