Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

EXternal Program

EXternal Program

2006-04-15 by jme_cd

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?

Re: [AVR-Chat] EXternal Program

2006-04-16 by David VanHorn



On 4/15/06, jme_cd <jme_cd@yahoo.com> wrote:
Show quoted textHide quoted text
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'd have to write those routines.
One way would be to use a tokenized language for higher functions, and run out of the EE.

--
Feel the power of the dark side! Atmel AVR

Re: [AVR-Chat] EXternal Program

2006-04-16 by dlc

Actually, if you used a compiler that created re-locatable code you 
could store the compiled results a form of library and pull them in and 
store them in FLASH using the same routines that the bootloader uses. 
You then jump to the "overlay" page and execute from there.  You'd need 
to fiddle a bit to get everything to work, but it is do-able.

DLC

David VanHorn wrote:
> 
> 
> On 4/15/06, *jme_cd* <jme_cd@yahoo.com <mailto:jme_cd@yahoo.com>> 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'd have to write those routines.
>  
> One way would be to use a tokenized language for higher functions, and 
> run out of the EE.
>  
> 
>     -- 
>     Feel the power of the dark side!  Atmel AVR 
> 
> 
> 
> SPONSORED LINKS
> Atmel avr 
> <http://groups.yahoo.com/gads?t=ms&k=Atmel+avr&w1=Atmel+avr&w2=Microcontrollers&w3=Intel+microprocessors&c=3&s=64&.sig=A-HbD_QytCTK9CSx18uWsw> 
> 	Microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Atmel+avr&w2=Microcontrollers&w3=Intel+microprocessors&c=3&s=64&.sig=UyXX5hhUtpktVcTDM9Lspw> 
> 	Intel microprocessors 
> <http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Atmel+avr&w2=Microcontrollers&w3=Intel+microprocessors&c=3&s=64&.sig=u4eKoD7G4IUar-_w5yTMfg> 
> 
> 
> 
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
> 
>     *  Visit your group "AVR-Chat
>       <http://groups.yahoo.com/group/AVR-Chat>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        AVR-Chat-unsubscribe@yahoogroups.com
>       <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
> 
> 
> ------------------------------------------------------------------------
> 

-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

Re: [AVR-Chat] EXternal Program

2006-04-20 by Ned Konz

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

Re: [AVR-Chat] EXternal Program

2006-04-20 by Jim Wagner

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
---------------------------------------------------------------

Re: [AVR-Chat] EXternal Program

2006-04-24 by Reza

--- 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

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.