Re: Why Do embedded processors have more Flash than RAM



For an embedded computer just think of Flash as disk and there is
always more disk than RAM. Except you can access the flash much faster
than disk so you can execute code right out of the flash with out
loading it in RAM as you would from a disk. That actually cuts down
the amount of RAM needed. On the other hand Flash has limited
write/rewrite life so your dynamic storage for temporary feequently
changing data is why the RAM is there at all. Just write out to Flash
what you want to keep around between power cycles, without power
refreshes RAM forgets.

So Flash is disk, with limits and bennifits.

-dcb

On Thu, 3 Nov 2005 07:48:18 +1100, "Phil W" <electropw@xxxxxxxxxxx>
wrote:

>Hi,
>
>Obviously your concept of processors comes from PC type system where all
>programs run in RAM.
>However, in embedded microprocessors programs generally run in flash, eeprom
>or rom, since there is no other storage medium that is non-volatile to hold
>the program whilst the power is off.
>In embedded systems there is generally no need to run programs in RAM since
>they are usually dedicated to a single application and do not need the
>ability to run different applications.
>Have a look at the AVR. It does not even give you the option of running a
>program from RAM, it's all assumed to be data.
>
>Phil
>
>
>"Maddy" <santhos@xxxxxxxxx> wrote in message
>news:1130945007.761856.138370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Hi,
>>
>> I cant help wonder why embedded processors have more Flash than RAM?
>> Right now, I am working with the AT91SAM7S, it has 256K Flash and only
>> 64K RAM. Why is this?
>> I am assuming we cannot run out of Flash. So if I had a program greater
>> than 64K what am I suppposed to do?
>>
>> Maddy
>>
>

.



Relevant Pages

  • Re: Whither "Hybrid" Disk Drives?
    ... well, never, unless its dirty contents overflows the area alloted for it (and the kinds of things that tend to be saved to disk on a laptop tend to be smallish, so that shouldn't happen often). ... with laptop RAM complements rapidly approaching 1 GB theses days: typical use should result in declining disk-read rates over time as less and less cannot be found in the system RAM. ... So how long does that take to fill a, say 128MB flash buffer? ... If you were indeed referring to destaging from flash to the platters that may make your current response more understandable, but then I'm not sure what the purpose of your earlier response was. ...
    (comp.arch)
  • Re: Computers of the Future
    ... AI to decide how to allocate CPU, RAM, DISK, Flash etc in a way the ... AI to place files on disk in the most optimal way. ... No more locking apps or data into a particular machine. ...
    (comp.lang.java.advocacy)
  • Re: [ANNOUNCE] Ramback: faster than a speeding bullet
    ... What I mean is that in a PC, RAM contents are very fragile: ... So please don't underestimate the reliability of a PC. ... I never spoke about waiting for disk transactions. ... You keep the RAM for the speed, and use flash ...
    (Linux-Kernel)
  • Re: virtual memory
    ... advantages of flash over a disk are very fast random R/W. ... those pages in RAM in the first place. ... Fast external NV storage (aka SSDs - solid-state-disk) does have some ...
    (comp.arch)
  • Re: Fast Start-up
    ... If RAM access on your hardware is ... copying the OS from flash or where ever you have it stored might ... Faster processors generally boot faster. ... power down the processor and peripherals. ...
    (microsoft.public.windowsce.embedded)