Loading...
Pages: [1]   Go Down
Author Topic: More MEMORY?  (Read 325 times)
0 Members and 1 Guest are viewing this topic.
Oz
Offline Offline
God Member
*****
Karma: 2
Posts: 564
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks.

Though I am stuck in the problem of not being able to program any more Arduinos, I was wondering about the existing one which IS working.

My sketch has grown and I realized that I am out of memory.

Is there any way to increase the size of the usable memory on a UNO copy?
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 15
Posts: 1587
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Reference/PROGMEM to move large strings into flash. Beyond that you need to move to a Mega, and beyond a Mega's memory size you can add external memory.
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or post your code (if you can) and see if it can be memory-optimized somehow.
Logged

Offline Offline
Edison Member
*
Karma: 5
Posts: 1168
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bummer that Quadram doesn't work with Uno...
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

United Kingdom
Online Online
Faraday Member
**
Karma: 146
Posts: 4907
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which memory have you run out of, flash or RAM? It is often possible to change the code to reduce usage of one or other or both, but you need to post your code if you want specific advice. Once you have applied the main techniques, if you are still running out then the best option may be to switch to a processor with more resources, e.g. a Mega or a Teensy.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 270
Posts: 17059
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can move to a board with a '1284P chip if you need more SRAM - 16K, twice what a Mega has.
I offer a 1284P that you assemble. 128K flash, 16K sram, dual serial ports, 32 IO pins.
http://www.crossroadsfencing.com/BobuinoRev17/ for PL and schematic
$5 mailed to US locations. Order parts you need, or scrounge your parts bin.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

the land of sun+snow
Offline Offline
Edison Member
*
Karma: 91
Posts: 2242
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

These can be mounted on a shield, DIP8, and they work at both 5V and 3.3V too.

http://www.digikey.com/product-detail/en/23LC1024-I%2FP/23LC1024-I%2FP-ND/3543083
http://www.digikey.com/product-detail/en/23LC512-I%2FP/23LC512-I%2FP-ND/3543089
Logged

Something different - Kitchen-Sink Arduino-compatible boards

Pages: [1]   Go Up
Print
 
Jump to: