Nano54415 EFFS-HTTP Ramdrive Error

Discussion to talk about software related topics only.
Post Reply
Lachlanp
Posts: 91
Joined: Tue Jan 29, 2013 4:44 am

Nano54415 EFFS-HTTP Ramdrive Error

Post by Lachlanp »

When loading the EFFS-HTTP example into the IDE, I get an error in the ramdrv_mcf.cpp file that I have not defined 'RAMDRV0_SIZE' and 'RAMDRV1_SIZE'.
If i comment out this entire file, all seems to work OK and the program comiles fine.

What is the RAMdrive feature used for and why would I need it?
What am I causing a problem with by commenting it out ?

Regards
Lachlan
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Nano54415 EFFS-HTTP Ramdrive Error

Post by dciliske »

RAMdrive is a feature for enabling you to use part of system RAM as a filesystem. Useful if you're porting an application to our platform that uses temp files, but they don't need to be persistent. It used to be a platform level file, but discussions internally lead us to consider a large portion of it functionality (read: what the RAM buffer sizes should be) needed to be defined in the particular project. Thus, it ended up in our EFFS examples 'common' directory (so we only need to maintain one copy) and it's pushed into the EFFS examples.

As for what problem you're causing by commenting it out... you're not. Thinking about the issue you're having points to the difference between building with GNU make and building with Eclipse. Our build system utilizes the makefile associated with each project, which explicitly lists what files to build. Eclipse infers what files to build based on what exists in the source directory. Hence, it builds ramdrv_mcf.cpp for this project, while our build system does not.

Sorry you got bit by this oversight; we will look into the matter and determine what the correct response is.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Lachlanp
Posts: 91
Joined: Tue Jan 29, 2013 4:44 am

Re: Nano54415 EFFS-HTTP Ramdrive Error

Post by Lachlanp »

This RAM drive feature would be handy, as you say, for temporary files. Where is its use documented?
Thanks
Lachlan
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: Nano54415 EFFS-HTTP Ramdrive Error

Post by rnixon »

Have you taken a look at the EFFS-RAM example in \nburn\examples?
Post Reply