Page 1 of 1

Nano54415 EFFS-HTTP Ramdrive Error

Posted: Fri Mar 08, 2013 4:42 am
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

Re: Nano54415 EFFS-HTTP Ramdrive Error

Posted: Fri Mar 08, 2013 8:11 am
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

Re: Nano54415 EFFS-HTTP Ramdrive Error

Posted: Fri Mar 08, 2013 7:29 pm
by Lachlanp
This RAM drive feature would be handy, as you say, for temporary files. Where is its use documented?
Thanks
Lachlan

Re: Nano54415 EFFS-HTTP Ramdrive Error

Posted: Sat Mar 09, 2013 3:28 pm
by rnixon
Have you taken a look at the EFFS-RAM example in \nburn\examples?