Pages: [1] 2   Go Down
Author Topic: More than 256K of memory?  (Read 3155 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am planning on a project that I think will end up taking quite a bit of code. Primarily I am looking to create a way to remotely control and monitor my commercial espresso machine and was hoping to make it stand alone. I don't want to have a computer running for it to serve up all of the information about the machine.
Is there a way to store my large (presumably) code base on a flash device? I am not talking strings and such, but large amounts of logic/code itself that would bring my code base past 256K. I have been looking for samples and howtos, but either there are none out there or i am using the wrong search terms. Any guidance would be much appreciated.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18806
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't think offhand what you would run to control an espresso machine that would require more than 256 Kb of program memory. The architecture (Harvard) does not allow code to be loaded from external devices, such as SD cards.

However people are making quite complex things, like quadcopters, and robots, using quite small amounts of program memory.

If you simply can't fit your code into 256 Kb, you might look at another processor. The Arduino Due for example has 512 Kb of program memory.

http://arduino.cc/en/Main/ArduinoBoardDue

Bear in mind that early PCs (eg. Apple, Apple Mac) shipped with less than 256 Kb of memory.

From Wikipedia:

Quote
IBM sold the first IBM PCs in configurations with 16 or 64 kB of RAM preinstalled using either nine or thirty-six 16-kilobit DRAM chips. ... After the IBM XT shipped, the IBM PC motherboard was configured more like the XTs motherboard with 8 narrower slots, as well as the same RAM configuration as the IBM XT. ( 64 kB in one bank, expandable to 256kB by populating the other 3 banks ).

It's hard to believe that one dedicated device (a coffee machine) would need more memory than you got on the original IBM PC.
Logged


Valencia, Spain
Online Online
Faraday Member
**
Karma: 146
Posts: 5519
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am planning on a project that I think will end up taking quite a bit of code. Primarily I am looking to create a way to remotely control and monitor my commercial espresso machine and was hoping to make it stand alone. I don't want to have a computer running for it to serve up all of the information about the machine.
Is there a way to store my large (presumably) code base on a flash device? I am not talking strings and such, but large amounts of logic/code itself that would bring my code base past 256K. I have been looking for samples and howtos, but either there are none out there or i am using the wrong search terms. Any guidance would be much appreciated.

I have a hard time imagining an espresso machine needs more than a couple of K of code to monitor.

Maybe you can flesh out your plan. What values need to be monitored? How do you want to access the information?
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 626
Posts: 34210
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you run bitlash, you can pull the code from the SD card.
Bitlash is an interpretive version of the arduino commands, google for it.
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If I had to take a guess, I would say the OP probably is thinking of storing stuff like the webpages, etc.. in the main flash. Actual code, I couldn't imagine many projects that would need more than 256K. So, if it data (audio, graphics, HTML, etc...) that will be filling up your memory, move that stuff to some external memory.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 626
Posts: 34210
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If I had to take a guess, I would say the OP probably is thinking of storing stuff like the webpages, etc.. in the main flash. Actual code, I couldn't imagine many projects that would need more than 256K. So, if it data (audio, graphics, HTML, etc...) that will be filling up your memory, move that stuff to some external memory.

Well he did say
Quote
I am not talking strings and such, but large amounts of logic/code itself that would bring my code base past 256
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unfortunately.. he didn't say much else.

Bob
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1726
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you know it is going to be larger than 256K, or are you just making a wild guess? Just as an example, it is possible to make an entire MP3 player in 90k of Flash, and that was over 15000 lines of code...
Logged

~Tom~

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18806
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Better let the OP respond. smiley

Haven't heard a word since the original post.
Logged


Valencia, Spain
Online Online
Faraday Member
**
Karma: 146
Posts: 5519
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Better let the OP respond. smiley

Haven't heard a word since the original post.

He's probably waiting for the 8-CPU, 4-terabyte RAID, 32GB RAM workstation needed to run the Arduino IDE.  smiley
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Gee alla that...? I have an instance running on a 1GHz 1GB Dell D610 laptop... It works fine, Windows 7 Ultimate, though is horribly slow.. I just wanted to see If I could make it work and one more time proved that there are pieces of code too big for a machine... An Expresso Machine?... Does it grow the beans too? I can see where duplicating the environment 'might' require some extra code... but more than 256K?

Bob
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Valencia, Spain
Online Online
Faraday Member
**
Karma: 146
Posts: 5519
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've written a complete Space Invaders game with VGA graphics and sampled sound on an Arduino Uno. I doubt a coffee machine needs that much.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18806
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Since we are pressing on without the pleasure of the company of the OP, I was reading yesterday about how one of the first gaming consoles (or devices anyway) only had 128 bytes of RAM, because it was so expensive. It might have been Pong. So each frame refresh, the entire playing field had to be generated from scratch, because it couldn't be stored in RAM.
Logged


Valencia, Spain
Online Online
Faraday Member
**
Karma: 146
Posts: 5519
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since we are pressing on without the pleasure of the company of the OP, I was reading yesterday about how one of the first gaming consoles (or devices anyway) only had 128 bytes of RAM, because it was so expensive. It might have been Pong. So each frame refresh, the entire playing field had to be generated from scratch, because it couldn't be stored in RAM.

Sounds like the Atari VCS: https://en.wikipedia.org/wiki/Atari_2600_hardware

128 bytes for everything, including CPU stack, frame buffer, sprites, game variables, etc. I've programmed some limited-resource systems in my time but I'm still amazed anybody managed to make games for the VCS.

Sure, Atmel makes ATtinys with only 64 bytes of RAM, but they don't normally get asked to do graphics and sound and manage multiple aliens.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12929
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure, Atmel makes ATtinys with only 64 bytes of RAM...

Atmel makes ATtiny processors with no SRAM.
Logged

Pages: [1] 2   Go Up
Jump to: