Pages: [1]   Go Down
Author Topic: Executing programm from SD  (Read 1474 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I just saw Pyxis OS, as I see it can execute other apps that are stored on SD card.

Unfortunately this Pyxis OS require Arduino Mega, and I have only Arduino with ATMega328.
So my question is, Is there some library/OS that allows me to execute apps from SD (touch screen support is not required)
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8589
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have no idea how they can execute code from an SD card unless the have a boot loader that is designed to do that.
You could probably do something  similar but it would not be easy.

_____
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Left Coast, USA
Offline Offline
Sr. Member
****
Karma: 7
Posts: 499
Sometimes I just can't help myself.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

to execute apps from SD
Arduino ATmega chips can not directly (natively) execute ATmega machine language instructions from SD (or from anywhere else other than the  Flash program memory built in to the ATmega).

What they call an "Operating System" is based on what they call a "Virtual CPU."  Similar to an "Instruction Set Emulator" or  "Interpreter," as we used to call them back in the 20th century, it reads "instructions" from the SD and executes code accordingly.  The set of "instructions" in the SD is not actually ATmega binary machine language, but some special stuff created by a proprietary  C compiler.  (Not open source, but it's very inexpensive according to the web site.)


Regards,

Dave
« Last Edit: March 16, 2011, 01:36:48 pm by davekw7x » Logged

Georgina Ontario
Offline Offline
Sr. Member
****
Karma: 5
Posts: 437
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Skeworks Pyxis 1 (NOT Version 2) is for the arduino.

http://www.skewworks.com/

And yes I guess it would have to be an interpreter... It would slow things down -- not suitable for may stuff but maybe for others.
Logged

Just another Hacker

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You also design a bootloader that can read different programs from an SD card and program them into flash and them execute them.
Logged

Brazil
Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
Xano
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am very interested in this.
Java should serve that purpose, but is not an option, java is very heavy (I know it has almost completely implemented a compiler that generated .class).
As colleagues told, the option is an interpreter.
One question guys.
They used Arduino Mega (ATmega1280) because the microcontroller is faster / more memory, or because somehow ATmega1280 allows memory hierarchy (execute instructions directly from SD)?

Thanks
Xano
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8589
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
faster / more memory, or because somehow ATmega1280 allows memory hierarchy (execute instructions directly from SD)?
None of the above except more memory.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Brazil
Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
Xano
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

ATmega1280 really "kickass" poor ATMega328
SRAM (Bytes): 8K vs 2K
Flash (Kbytes): 128 vs 64

=/
Anyway looks like a challenging project.
I want to try xD
Logged

Pages: [1]   Go Up
Jump to: