Page 1 of 1

EFFS RAM Drive

Posted: Sat Jul 16, 2011 11:34 am
by embedded_guy
I am trying to create a RAM drive using the EFFS. I have followed the example from the fat_331.pdf document. In main, I have the following

Code: Select all

   f_enterFS();

   f_init();

   f_initvolume(0, f_ramdrvinit, F_AUTO_ASSIGN);

   f_format(0, F_FAT12_MEDIA);

   ReadWriteTest();
 
   DisplayEffsSpaceStats();
When I run the above code, I always get the error F_ERR_TASKNOFOUND. I'm not sure why I'm seeing this after calling f_enterFS(). Any help is appreciated.

Thanks.

Re: EFFS RAM Drive

Posted: Mon Jul 18, 2011 4:43 pm
by greengene
that manual is written for a generic OS.
your code should/must adhere to what the netburner OS uses.
start with a basic netburner example program and then add your new stuff.

my first guess to the specific of this problem is related to not setting
main's priority before using the file system.

Re: EFFS RAM Drive

Posted: Tue Jul 19, 2011 12:00 pm
by embedded_guy
Thanks for the reply.

I do make the following call before I perform any EFFS function calls:

Code: Select all

   OSChangePrio(MAIN_PRIO);
Shouldn't this take care of setting the priority for main?

Any help is appreciated.

Re: EFFS RAM Drive

Posted: Tue Jul 19, 2011 1:19 pm
by greengene
move
f_init();
before any other calls, including
f_enterFS();