use SD card to increase the arduino flashmemory

Hello everyone
Is there a way to extend the arduino uno 32k flash memory with an SD card
maybe turn the code into hex file and save it on the sd card?

any ideas

thank you in advance

No. You can use SD card to store data, but code to run by IC must be in it's flash memory. Get Mega.

You could run an interpreter language on the Arduino with the code on the SD card.
But you should buy an Mega 2560.

If you are willing to take the risk for low quality components, a Mega clone is only 17 dollars at Ebay, arduino atmega2560 -uno -proto -sensor -tqfp for sale | eBay

qwertysimo, i know about the Mega 2560 and SD car uses flash memory..

Erdin:
You could run an interpreter language on the Arduino with the code on the SD card.

where can i find how to write an interpreter language on the Arduino, so i can execute the code on the sd card?

Hovic:
...
where can i find how to write an interpreter language on the Arduino, so i can execute the code on the sd card?

You may find this useful: http://bitlash.net
And I seem to remember a BASIC interpreter that runs from SD, you may try a forum search. You could build your "own language" and read from SD and parse the tokens: The code below reads a TTL serial stream, extract tokens, extracts strings, and performs arithmetic... essentially, you can extend this concept into any area.

The "parser" is pretty simple:

Serial.readBytes( Inst, 4);
  Operation = Inst; Operation.trim();

  for ( j= 0; j<operations; j++) {
    if (Operation.equalsIgnoreCase(sStack[j])) {
      T0 = millis();
      break;
    }
  • Ray

calculator.zip (3 KB)

hi

I have a related question:

I started building a midi controller for sending midi macros over the serial port. By macros I mean a string of multiple midi messages. I'm pretty sure I will hit the 32kb limit of the Atmega328p installed on the UNO, so I was thinking of just having the code on the IC but the midi data for the macros on the SD card.

Would it be possible to do this? To have the Arduino read and (Tx) send the midi macro data from the sd card (almost) as fast as it would do it from the IC flash memory?

thanks

@naut:

Prob would be wise to ask that question in the Project Guidance area.