Re: [Yaffs] using yaffs wituoht OS

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: amin assar
CC: yaffs@lists.aleph1.co.uk
Subject: Re: [Yaffs] using yaffs wituoht OS
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 <> 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
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>