Shop OBEX P1 Docs P2 Docs Learn Events
image file of stamp program — Parallax Forums

image file of stamp program

ArchiverArchiver Posts: 46,084
edited 2000-11-02 13:20 in General Discussion
>How can I produce an image file of the HEX code that it actually loaded
into
>the BS2sx?
>I would like to download new program to a BS2 via a pc running a custom
>software. I have read about the programming protocol from Tracy's web site
>but it uses another stamp for programming.

A small routine running on the stamp can dump the contents of its own
memory out the serial port to your PC to be captured as hex data.

bv var byte
ix var word
for ix=0 to 2047
read ix,bv
debug hex2,bv
next

You just need to figure out a way to trigger this routine, so that it will
not affect the normal operation of your program.

The Stache module can capture BS2 or BS2SX programs, and then deliver them
to a Stamp at another place and time.


-- Tracy Allen
http://www.emesystems.com/stachedat.htm <---Stache info
http://www.emesystems.com/BS2misc.htm#Clone <----program cloning info

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-11-01 18:08
    Aparently Parallax will support the bsave/bload functions in the next
    release of the Stamp software. At least thats a rumor i have heard.

    MH

    Original Message
    From: "Tracy Allen" <emesys@c...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, November 01, 2000 12:59 PM
    Subject: [noparse][[/noparse]basicstamps] image file of stamp program


    > >How can I produce an image file of the HEX code that it actually loaded
    > into
    > >the BS2sx?
    > >I would like to download new program to a BS2 via a pc running a custom
    > >software. I have read about the programming protocol from Tracy's web
    site
    > >but it uses another stamp for programming.
    >
    > A small routine running on the stamp can dump the contents of its own
    > memory out the serial port to your PC to be captured as hex data.
    >
    > bv var byte
    > ix var word
    > for ix=0 to 2047
    > read ix,bv
    > debug hex2,bv
    > next
    >
    > You just need to figure out a way to trigger this routine, so that it will
    > not affect the normal operation of your program.
    >
    > The Stache module can capture BS2 or BS2SX programs, and then deliver them
    > to a Stamp at another place and time.
    >
    >
    > -- Tracy Allen
    > http://www.emesystems.com/stachedat.htm <---Stache info
    > http://www.emesystems.com/BS2misc.htm#Clone <----program cloning info
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-01 18:20
    I'm very new to stamping, so forgive me of my ignorance, but even if the
    software supports a bsave/bload function, wouldn't it be the hardware that
    would interpret these commands? Wouldn't the stamp IC have to understand
    what those functions are?

    Just a little note, in the spirit of learning. [noparse]:)[/noparse]

    Eric

    Original Message
    From: Michael Hendricks [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=un4R7USeMpaXiy0A411GHr4P0czcrcL8GEWBsnjc4pUIfedn-HX-Ig2bhZ0G0tKfWqLwmpzGWn7f]mjh80@b...[/url
    Sent: Wednesday, November 01, 2000 12:09 PM
    To: basicstamps@egroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] image file of stamp program


    Aparently Parallax will support the bsave/bload functions in the next
    release of the Stamp software. At least thats a rumor i have heard.

    MH

    Original Message
    From: "Tracy Allen" <emesys@c...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, November 01, 2000 12:59 PM
    Subject: [noparse][[/noparse]basicstamps] image file of stamp program


    > >How can I produce an image file of the HEX code that it actually loaded
    > into
    > >the BS2sx?
    > >I would like to download new program to a BS2 via a pc running a custom
    > >software. I have read about the programming protocol from Tracy's web
    site
    > >but it uses another stamp for programming.
    >
    > A small routine running on the stamp can dump the contents of its own
    > memory out the serial port to your PC to be captured as hex data.
    >
    > bv var byte
    > ix var word
    > for ix=0 to 2047
    > read ix,bv
    > debug hex2,bv
    > next
    >
    > You just need to figure out a way to trigger this routine, so that it will
    > not affect the normal operation of your program.
    >
    > The Stache module can capture BS2 or BS2SX programs, and then deliver them
    > to a Stamp at another place and time.
    >
    >
    > -- Tracy Allen
    > http://www.emesystems.com/stachedat.htm <---Stache info
    > http://www.emesystems.com/BS2misc.htm#Clone <----program cloning info
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-01 18:24
    The BSAVE function saves the "binary" or byte code image to a file (256bytes
    for BS1's) 2K for a BS2SX, etc. The BLOAD function acts as a programmer. You
    connect the stamp to the computer run the bload function and it loads that
    code onto the stamp. There is documentation for BSAVE / BLOAD in the stamp
    guide.

    MH

    Original Message
    From: "Eric Schettler" <schettlee@p...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, November 01, 2000 1:20 PM
    Subject: RE: [noparse][[/noparse]basicstamps] image file of stamp program


    > I'm very new to stamping, so forgive me of my ignorance, but even if the
    > software supports a bsave/bload function, wouldn't it be the hardware that
    > would interpret these commands? Wouldn't the stamp IC have to understand
    > what those functions are?
    >
    > Just a little note, in the spirit of learning. [noparse]:)[/noparse]
    >
    > Eric
    >
    >
    Original Message
    > From: Michael Hendricks [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=pa3gCbTsYPns0AaFPyALaAuZhur-BNgnYRoSTP3BR_4bS89vXQBU0WD0olLKXM1vMFo6u71BJYm1-Nzt]mjh80@b...[/url
    > Sent: Wednesday, November 01, 2000 12:09 PM
    > To: basicstamps@egroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] image file of stamp program
    >
    >
    > Aparently Parallax will support the bsave/bload functions in the next
    > release of the Stamp software. At least thats a rumor i have heard.
    >
    > MH
    >
    >
    Original Message
    > From: "Tracy Allen" <emesys@c...>
    > To: <basicstamps@egroups.com>
    > Sent: Wednesday, November 01, 2000 12:59 PM
    > Subject: [noparse][[/noparse]basicstamps] image file of stamp program
    >
    >
    > > >How can I produce an image file of the HEX code that it actually loaded
    > > into
    > > >the BS2sx?
    > > >I would like to download new program to a BS2 via a pc running a custom
    > > >software. I have read about the programming protocol from Tracy's web
    > site
    > > >but it uses another stamp for programming.
    > >
    > > A small routine running on the stamp can dump the contents of its own
    > > memory out the serial port to your PC to be captured as hex data.
    > >
    > > bv var byte
    > > ix var word
    > > for ix=0 to 2047
    > > read ix,bv
    > > debug hex2,bv
    > > next
    > >
    > > You just need to figure out a way to trigger this routine, so that it
    will
    > > not affect the normal operation of your program.
    > >
    > > The Stache module can capture BS2 or BS2SX programs, and then deliver
    them
    > > to a Stamp at another place and time.
    > >
    > >
    > > -- Tracy Allen
    > > http://www.emesystems.com/stachedat.htm <---Stache info
    > > http://www.emesystems.com/BS2misc.htm#Clone <----program cloning
    info
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-01 18:24
    The BSAVE function saves the "binary" or byte code image to a file (256bytes
    for BS1's) 2K for a BS2SX, etc. The BLOAD function acts as a programmer. You
    connect the stamp to the computer run the bload function and it loads that
    code onto the stamp.

    MH

    Original Message
    From: "Eric Schettler" <schettlee@p...>
    To: <basicstamps@egroups.com>
    Sent: Wednesday, November 01, 2000 1:20 PM
    Subject: RE: [noparse][[/noparse]basicstamps] image file of stamp program


    > I'm very new to stamping, so forgive me of my ignorance, but even if the
    > software supports a bsave/bload function, wouldn't it be the hardware that
    > would interpret these commands? Wouldn't the stamp IC have to understand
    > what those functions are?
    >
    > Just a little note, in the spirit of learning. [noparse]:)[/noparse]
    >
    > Eric
    >
    >
    Original Message
    > From: Michael Hendricks [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=iUBy-r7I0qB3N3Yem06qwxCOb3Oks8-Rwm21SIq0cRnxnR_qRdne2vFpgLiZd3adQ7x3SyY3jnfOZg]mjh80@b...[/url
    > Sent: Wednesday, November 01, 2000 12:09 PM
    > To: basicstamps@egroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] image file of stamp program
    >
    >
    > Aparently Parallax will support the bsave/bload functions in the next
    > release of the Stamp software. At least thats a rumor i have heard.
    >
    > MH
    >
    >
    Original Message
    > From: "Tracy Allen" <emesys@c...>
    > To: <basicstamps@egroups.com>
    > Sent: Wednesday, November 01, 2000 12:59 PM
    > Subject: [noparse][[/noparse]basicstamps] image file of stamp program
    >
    >
    > > >How can I produce an image file of the HEX code that it actually loaded
    > > into
    > > >the BS2sx?
    > > >I would like to download new program to a BS2 via a pc running a custom
    > > >software. I have read about the programming protocol from Tracy's web
    > site
    > > >but it uses another stamp for programming.
    > >
    > > A small routine running on the stamp can dump the contents of its own
    > > memory out the serial port to your PC to be captured as hex data.
    > >
    > > bv var byte
    > > ix var word
    > > for ix=0 to 2047
    > > read ix,bv
    > > debug hex2,bv
    > > next
    > >
    > > You just need to figure out a way to trigger this routine, so that it
    will
    > > not affect the normal operation of your program.
    > >
    > > The Stache module can capture BS2 or BS2SX programs, and then deliver
    them
    > > to a Stamp at another place and time.
    > >
    > >
    > > -- Tracy Allen
    > > http://www.emesystems.com/stachedat.htm <---Stache info
    > > http://www.emesystems.com/BS2misc.htm#Clone <----program cloning
    info
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-02 13:13
    > From: "Michael Hendricks" <mjh80@b...>
    >
    > Aparently Parallax will support the bsave/bload functions in the next
    > release of the Stamp software. At least thats a rumor i have heard.
    >
    > MH
    Any idea when it will be out? v1.1 was supposed to be out 'a few weeks
    after' 1.096 Beta which came out in early '99. I thought I saw messages that
    it would be out August-September.
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-02 13:20
    I have just sent an e-mail to parallax technical support.
    I hope that they came with a good answer.

    Aggelos

    Original Message
    From: Mike DeMetz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=YkdjMZlmMomUQqNapgdqV5AIPmXiF6433tqI8O6sbrP4JIVvYw3Jb33ZqDuWjLSS7nrXA4I9-nSalCdF116-]miked@t...[/url
    Sent: Thursday, November 02, 2000 3:14 PM
    To: basicstamps@egroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: image file of stamp program


    > From: "Michael Hendricks" <mjh80@b...>
    >
    > Aparently Parallax will support the bsave/bload functions in the next
    > release of the Stamp software. At least thats a rumor i have heard.
    >
    > MH
    Any idea when it will be out? v1.1 was supposed to be out 'a few weeks
    after' 1.096 Beta which came out in early '99. I thought I saw messages that
    it would be out August-September.
Sign In or Register to comment.