[prev in list] [next in list] [prev in thread] [next in thread] 

List:       yaffs
Subject:    Re: [Yaffs] using yaffs wituoht OS
From:       Charles Manning <cdhmanning () gmail ! com>
Date:       2013-07-26 0:12:17
Message-ID: CAE21AQrSr-P9Z5WF1N2No6x9E4AAL4OwZJBpsdF9BBA_+09YjQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div>There are no complete examples because that would \
require a lot of code beyond the scope of yaffs.<br><br></div>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:<br> int yaffs_get_error(void);<br>const char *yaffs_error_to_str(int \
err);<br><br></div>Also, for getting going it is worth setting the yaffs_trace_mask \
to get more info.<br><br></div>-- Charles<br><br></div><div class="gmail_extra"> \
<br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 11:57 PM, amin assar <span \
dir="ltr">&lt;<a href="mailto:amin_8460@yahoo.com" \
target="_blank">amin_8460@yahoo.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div><div style="font-size:10pt;font-family:times new \
roman,new york,times,serif"><div>Hi</div><div>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.</div> <div>Unfortunately, I couldn&#39;t find complete document to implement \
yaffs, but I&#39;ve tried to understand the details using available documents and \
codes.</div><div>My problem is that when I run the code yaffs_mount() return \
&quot;-1&quot;. Where did I do wrong?</div> \
<div>&quot;</div><div>yaffs_start_up();<br>i=yaffs_mount(&quot;/nand&quot;);<br></div><div>&quot;<br></div><div>Is \
there any complete example for using yaffs with NANDFLASH without \
OS?</div><div><br></div><div \
style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:times \
new roman,new york,times,serif"> Thanks for any help.</div><span class="HOEnZb"><font \
color="#888888"><div \
style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:times \
new roman,new york,times,serif">Amin<br></div></font></span></div> \
</div><br>_______________________________________________<br> yaffs mailing list<br>
<a href="mailto:yaffs@lists.aleph1.co.uk">yaffs@lists.aleph1.co.uk</a><br>
<a href="http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs" \
target="_blank">http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs</a><br> \
<br></blockquote></div><br></div>



_______________________________________________
yaffs mailing list
yaffs@lists.aleph1.co.uk
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic