Shop OBEX P1 Docs P2 Docs Learn Events
re-program stamp on the fly — Parallax Forums

re-program stamp on the fly

ArchiverArchiver Posts: 46,084
edited 2003-11-23 00:13 in General Discussion
Hypothetical situation. SUPPOSE I had a memory source like a compact
flash card or even traditional RAM loaded with STAMP programs...AND I
had a Stamp running a program...(has anyone successfully done
this)...using a master controller (possibly another stamp) halt the
first Stamp, download a new program and re-start the first stamp? I
know this is theoretically possible, but as far as I know, the stamp
can only be loaded from a PC. (Please don't tell me I have to have a
laptop dedicated to this system.... That WOULD be easiest, but I'm
looking for a small solution.)
(I sit around and think of these things... I need to get a life, in
fact... nine of them...)


Thanks
Steve AKA CAT

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-19 23:47
    Hi Steve,

    This might just be what you're looking for:

    http://www.emesystems.com/stache.htm

    Best regards,

    Russell Warburton
    email: russell@w...
    website: http://www.warburtech.com
    telephone: +44 (0)7814 044 754
    Original Message
    From: "catgirldo" <catgirldo@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, November 19, 2003 11:38 PM
    Subject: [noparse][[/noparse]basicstamps] re-program stamp on the fly


    > Hypothetical situation. SUPPOSE I had a memory source like a compact
    > flash card or even traditional RAM loaded with STAMP programs...AND I
    > had a Stamp running a program...(has anyone successfully done
    > this)...using a master controller (possibly another stamp) halt the
    > first Stamp, download a new program and re-start the first stamp? I
    > know this is theoretically possible, but as far as I know, the stamp
    > can only be loaded from a PC. (Please don't tell me I have to have a
    > laptop dedicated to this system.... That WOULD be easiest, but I'm
    > looking for a small solution.)
    > (I sit around and think of these things... I need to get a life, in
    > fact... nine of them...)
    >
    >
    > Thanks
    > Steve AKA CAT
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-20 00:13
    Russell... Yikes! Looks almost perfect! (Perfect would be already set
    up and free... <sigh>) I believe that's as close as I'm going to get.
    Realisticly, $119 is not an unreasonible price. Only problem would be
    the lag time of selecting which program to download. I suspect it
    could take at least 30 seconds to download 8 2K programs to the stamp.
    I want this for a robotics system so time is critical. ...hmmm
    depending on the final software, it may make sence instead to use a
    back up stamp and pass control over to avoid the lag time... or even
    have an "active" stamp and a "backup" stamp to program and switch into
    active service as needed. (ok this just got real complicated fast.)
    Thanks Russell, You're a great resource!

    Steve AKA CAT .... >^..^<




    -- In basicstamps@yahoogroups.com, "Russell Warburton" <russell@w...>
    wrote:
    > Hi Steve,
    >
    > This might just be what you're looking for:
    >
    > http://www.emesystems.com/stache.htm
    >
    > Best regards,
    >
    > Russell Warburton
    > email: russell@w...
    > website: http://www.warburtech.com
    > telephone: +44 (0)7814 044 754
    >
    Original Message
    > From: "catgirldo" <catgirldo@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Wednesday, November 19, 2003 11:38 PM
    > Subject: [noparse][[/noparse]basicstamps] re-program stamp on the fly
    >
    >
    > > Hypothetical situation. SUPPOSE I had a memory source like a compact
    > > flash card or even traditional RAM loaded with STAMP programs...AND I
    > > had a Stamp running a program...(has anyone successfully done
    > > this)...using a master controller (possibly another stamp) halt the
    > > first Stamp, download a new program and re-start the first stamp? I
    > > know this is theoretically possible, but as far as I know, the stamp
    > > can only be loaded from a PC. (Please don't tell me I have to have a
    > > laptop dedicated to this system.... That WOULD be easiest, but I'm
    > > looking for a small solution.)
    > > (I sit around and think of these things... I need to get a life, in
    > > fact... nine of them...)
    > >
    > >
    > > Thanks
    > > Steve AKA CAT
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in the
    Subject and
    > Body of the message will be ignored.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
    > >
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-21 08:23
    Steve wrote:

    > Realisticly, $119 is not an unreasonible price. Only
    > problem would be
    > the lag time of selecting which program to download.
    > I suspect it
    > could take at least 30 seconds to download 8 2K
    > programs to the stamp.
    > I want this for a robotics system so time is
    > critical. ...hmmm
    > depending on the final software, it may make sence
    > instead to use a
    Well how about more EEPROM if you know in advance what
    is required? STAMP program memory capacity is fixed
    but that leaves two choices:
    1. have spare programs in I2C eeprom and download them
    to core EEPROM pages on demand and then RUN page to
    start them - keeping PAGE 0 as a 'menu'. Here the
    EEPROM would be filled by a 'loader' residing in PAGE
    0 - you could tokenise on PC into say PAGE 1, then
    use the loader to take it off chip until required.
    Repeat until full...

    2. modify your stamp to disable on board EEPROM and
    bring another into play via their chip enable lines.
    This would be a lot easier with OEM stamp as then the
    EEPROM is in plain DIP package. I'd see this being
    done with a bit of external hardware (maybe a STAMP1
    but could also be implemented with a few bit counter
    chain and a pulse generator 555 or 74123?) that
    recognised a reload request, held reset down, altered
    EEPROM CS lines and then raised reset, thereby
    starting program in the 'other' EEPROM. These coudl be
    programmed in normal way by manually overriding the
    select process and loading each EEPROM in turn.

    Adrian


    =====
    -
    *********************************************

    ________________________________________________________________________
    Want to chat instantly with your online friends? Get the FREE Yahoo!
    Messenger http://mail.messenger.yahoo.co.uk
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-21 17:04
    Adrian,

    Hey that second idea is absolutely inspired! Piece of cake! I'm
    an old "chip select hacker" from WAY back! ( I attempted to mate
    memory to an old Timex 1000...I don't want to talk about it). I must
    admit, I have never seen an OEM board before so I didn't know you
    could get at the EEPROM.
    The first idea... I'm still scratching my head on that one. You're
    talking about a place I've never been. I'm not real good when people
    use multi syllable words. Do you know anyplace I can find an example
    of that?

    Thanks for your help!

    Steve



    --- In basicstamps@yahoogroups.com, Adrian <adrian650@y...> wrote:
    > Steve wrote:
    >
    > > Realisticly, $119 is not an unreasonible price. Only
    > > problem would be
    > > the lag time of selecting which program to download.
    > > I suspect it
    > > could take at least 30 seconds to download 8 2K
    > > programs to the stamp.
    > > I want this for a robotics system so time is
    > > critical. ...hmmm
    > > depending on the final software, it may make sence
    > > instead to use a
    > Well how about more EEPROM if you know in advance what
    > is required? STAMP program memory capacity is fixed
    > but that leaves two choices:
    > 1. have spare programs in I2C eeprom and download them
    > to core EEPROM pages on demand and then RUN page to
    > start them - keeping PAGE 0 as a 'menu'. Here the
    > EEPROM would be filled by a 'loader' residing in PAGE
    > 0 - you could tokenise on PC into say PAGE 1, then
    > use the loader to take it off chip until required.
    > Repeat until full...
    >
    > 2. modify your stamp to disable on board EEPROM and
    > bring another into play via their chip enable lines.
    > This would be a lot easier with OEM stamp as then the
    > EEPROM is in plain DIP package. I'd see this being
    > done with a bit of external hardware (maybe a STAMP1
    > but could also be implemented with a few bit counter
    > chain and a pulse generator 555 or 74123?) that
    > recognised a reload request, held reset down, altered
    > EEPROM CS lines and then raised reset, thereby
    > starting program in the 'other' EEPROM. These coudl be
    > programmed in normal way by manually overriding the
    > select process and loading each EEPROM in turn.
    >
    > Adrian
    >
    >
    > =====
    > -
    > *********************************************
    >
    > ________________________________________________________________________
    > Want to chat instantly with your online friends? Get the FREE Yahoo!
    > Messenger http://mail.messenger.yahoo.co.uk
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-21 17:35
    Hi Steve AKA CAT,

    The Stache module is available for Parallax for $99. It takes the
    same length of time to program a Stamp when using the Stache as it
    does when using a PC with the STAMPW.EXE program or object loader.
    That is about as fast as it gets. With the Stache, though, you don't
    have to carry around a PC or boot it up. Usually you would not have
    to update all 8 banks.

    You might be interested to know that one Stamp can program another:
    http://www.emesystems.com/BS2clone.htm

    With the new stamps, the '2p and '2pe, it is possible to load in a
    program using the STORE and WRITE commands, but that is slower that
    the real programming algorithm used by the IDE or the Stache, because
    the eeprom locations are written one by one instead of page by page.

    The idea of switching between different eeproms on an OEM Stamp
    should work, but I've never seen published instructions for a hack
    like that.

    -- Tracy
    http://www.emesystems.com


    >Russell... Yikes! Looks almost perfect! (Perfect would be already set
    >up and free... <sigh>) I believe that's as close as I'm going to get.
    >Realisticly, $119 is not an unreasonible price. Only problem would be
    >the lag time of selecting which program to download. I suspect it
    >could take at least 30 seconds to download 8 2K programs to the stamp.
    >I want this for a robotics system so time is critical. ...hmmm
    >depending on the final software, it may make sence instead to use a
    >back up stamp and pass control over to avoid the lag time... or even
    >have an "active" stamp and a "backup" stamp to program and switch into
    >active service as needed. (ok this just got real complicated fast.)
    > Thanks Russell, You're a great resource!
    >
    >Steve AKA CAT .... >^..^<
    >
    >
    >
    >
    >-- In basicstamps@yahoogroups.com, "Russell Warburton" <russell@w...>
    >wrote:
    >> Hi Steve,
    >>
    >> This might just be what you're looking for:
    >>
    >> http://www.emesystems.com/stache.htm
    >>
    >> Best regards,
    >>
    >> Russell Warburton
    >> email: russell@w...
    >> website: http://www.warburtech.com
    >> telephone: +44 (0)7814 044 754
    >>
    Original Message
    >> From: "catgirldo" <catgirldo@y...>
    >> To: <basicstamps@yahoogroups.com>
    >> Sent: Wednesday, November 19, 2003 11:38 PM
    >> Subject: [noparse][[/noparse]basicstamps] re-program stamp on the fly
    >>
    >>
    >> > Hypothetical situation. SUPPOSE I had a memory source like a compact
    >> > flash card or even traditional RAM loaded with STAMP programs...AND I
    >> > had a Stamp running a program...(has anyone successfully done
    >> > this)...using a master controller (possibly another stamp) halt the
    >> > first Stamp, download a new program and re-start the first stamp? I
    >> > know this is theoretically possible, but as far as I know, the stamp
    >> > can only be loaded from a PC. (Please don't tell me I have to have a
    >> > laptop dedicated to this system.... That WOULD be easiest, but I'm
    >> > looking for a small solution.)
    > > > (I sit around and think of these things... I need to get a life, in
    > > > fact... nine of them...)
    > > >
    > > >
    > > > Thanks
    > > > Steve AKA CAT
    > > >
    > > >
    > > > To UNSUBSCRIBE, just send mail to:
    > > > basicstamps-unsubscribe@yahoogroups.com
    >> > from the same email address that you subscribed. Text in the
    >Subject and
    >> Body of the message will be ignored.
    >> >
    >> >
    >> > Your use of Yahoo! Groups is subject to
    >http://docs.yahoo.com/info/terms/
    >> >
    >> >
    >> >
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the
    >Subject and Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-21 18:49
    I wonder how many different applications you expect to run
    from this setup. If you're only going to used 2 or 3, I'd
    use seperate stamps and just use a master to switch the
    appropriate stamp into the circuit.
    --
    Regards

    Dave Evartt
    American Hovercraft
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-22 23:30
    I guess it might be appropriate to explain why I'd want to
    re-program a basic stamp on the fly.
    I've entered a autonomous robotics contest to take place in Belgium
    in April of '04. I wanted to include my daugther's high school and so
    I've chosen to go STAMP as much as possible to make it simple enough
    for the students to understand and learn (and to keep me from falling
    completely on my face...). I've had some experience with STAMPS having
    been involved in the F.I.R.S.T. Robotics competition for several years
    before moving to London. I've also linked STAMPS in a master slave
    configuration so I'm confident in being able to make them talk
    together with minimal effort.
    There are three "sections" to the competition that the robot will
    have to negotiate and my main concern is the amout of code it will
    take to do all three. I was concerned that I may have to abandon the
    STAMP as the major controller because the amount of coding may exceed
    the programming space an individual STAMP so I wanted to explore the
    possibility of reprogramming the master stamp or as an alternative,
    passing control to a CO-master stamp... or even a second CO-master stamp.
    Anyway, that's it in a nutshell and I THINK I've gotten the
    information I need to press forward with a good degree of confidence.
    Anyway, now you know the reason for the weird question.


    Best Wishes


    Steve CAT
  • ArchiverArchiver Posts: 46,084
    edited 2003-11-23 00:13
    Steve CAT-

    Unless you're looking for simultaneous co-processing, this sounds
    like a natural application for a BS2SX/p/pe. In essence, these
    models have seven additional, firmware-selectable EEPROM banks, much
    like what you're contemplating.

    Regards,

    Steve

    On 22 Nov 03 at 23:30, catgirldo wrote:

    > ...I was concerned that I may have to abandon the STAMP as the
    > major controller because the amount of coding may exceed the
    > programming space an individual STAMP so I wanted to explore the
    > possibility of reprogramming the master stamp or as an alternative,
    > passing control to a CO-master stamp... or even a second CO-master
    > stamp...
Sign In or Register to comment.