--- Jim Wagner <jim_d_wagner@applelinks.net> wrote:
> Another option is to just use one with enough memory
> to
> hold all of the various options.
>
> Jim
>
> On Thu, 20 Apr 2006 10:28:22 -0700
> Ned Konz <bikenomad@gmail.com> wrote:
> >
> > On Apr 15, 2006, at 6:10 PM, jme_cd wrote:
> >
> > > I am making a robot and want it to be able to do
> > different tasks. I
> > > would like to be able to do this by storing the
> > programs on seperate
> > > EEPROM chips and then swapping then depending on
> what i
> > want it to do.
> > > How do i call the software on the external chip
> to run
> > as the program
> > > rather then storing it on the main controller?
> >
> >
> > You could link multiple versions of the program
> and just
> > extract the
> > varying part. To do this you'd need a linker
> script that
> > reserved a
> > fixed part of flash memory for the to-be-loaded
> program,
> > so that the
> > addresses following that program would stay the
> same.
> >
> > You might also want to look at the Turbo SIM
> project;
> > they've come up
> > with an avr-binutils patch that allows loadable
> > applications on the
> > AVR (very similar to what you want to do).
> >
> > http://www.bladox.com
> >
> > --
> > Ned Konz
> > MetaMagix embedded consulting
> > MetaMagix@gmail.com
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
>
>
---------------------------------------------------------------
> The Think Different Store
> http://www.thinkdifferentstore.com/
> For All Your Mac Gear
>
---------------------------------------------------------------
>
another thing you can do is to use a virtual machine
like java. google for NanoVM project. NanoVM
implements a nano Java Virtual Machine which used for
a robot program. in this case you must write whole of
your program in Java and download it into external
eeproms. then start nanoVM to run your code from
external memory space. but for better performance,
divide all your code into fast parts like timer based
actions which must take placed in timer interrupt
routines and decision tasks which could be handled
slowly in Java. it's enough.
good luck;
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com