clawson - data buffer

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Clawson, should I load one sector at a time into a data buffer or just load the entire cluster?  I'm guessing that to load one sector at a time would be best since it is supposed to be a Embedded Stack.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Look at what Windows/Linux do. If you've got RAM flaunt it!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do have lots of RAM, 512MBytes.

But what about legacy support for low end mcu's

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, in CP/M with only 64K ram for everything, I'd just page through files.

The largest known prime number: 282589933-1

In my humble opinion, I'm always right. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You've got to decide what target(s) you are writing this for. If CortexA then you are effectively rewriting Linux so make it like Linux. But that is kind of the point. Anyone with a CortexA is just going to use Linux anyway - so there's not much point writing another OS as you'll never beat it. In which case I'd write for non-MMU CPUs with limited resources (like there aren't enough RTOS/FS choices there already!). If you make such a choice then I guess you can't set aside 32K for buffering whole allocation units.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi clawson, I'm doing all this work for a PhD on Embedded RTOS's.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Even more important then that you decide the target. You aren't going to run the same RTOS on a 2K 8bit AVR Tiny as a 512MB 32BIT CortexA. It's the same reason a Bugatti Veyron and a Nissan Micra don't use the same tyres!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'll just buffer the cluster size since the target for the RTOS is ARM.  Still trying to get my head around USB Hosts so my current projects in the coming months are as follows:

 

USB Host Stack,

IPv6 Stack,

LCD Display Window