EFFS RAM Drive

Discussion to talk about software related topics only.
Post Reply
embedded_guy
Posts: 5
Joined: Sat Jul 16, 2011 11:15 am

EFFS RAM Drive

Post 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.
greengene
Posts: 164
Joined: Wed May 14, 2008 11:20 am
Location: Lakeside, CA

Re: EFFS RAM Drive

Post 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.
embedded_guy
Posts: 5
Joined: Sat Jul 16, 2011 11:15 am

Re: EFFS RAM Drive

Post 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.
greengene
Posts: 164
Joined: Wed May 14, 2008 11:20 am
Location: Lakeside, CA

Re: EFFS RAM Drive

Post by greengene »

move
f_init();
before any other calls, including
f_enterFS();
Post Reply