Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp and data EEPROM Read/Write — Parallax Forums

Basic Stamp and data EEPROM Read/Write

ArchiverArchiver Posts: 46,084
edited 2003-07-29 08:53 in General Discussion
Does anybody have experience with writing data to and
reading data from the Basic Stamp 2 EEPROM?
First I write some data to known positions at the
EEPROM. Then I start reading and checking them in the
debugging window, but only the first two are correct,
and the rest is corrupted. Also in the same moment
there are problems with the program execution, it
loops without an exit...

Has somebody an idea what is going on?

Thank you in advance.
Petar


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-07-28 16:39
    you are probably overwriting your program code with variables (they
    are all stored in the same eeprom). To check where your program code
    stored in the eeprom ends, check the memory map. Then start writing
    your variables to the eeprom only at addresses after your program
    code.

    --- In basicstamps@yahoogroups.com, Petar Ljusev <ratep2001@y...>
    wrote:
    > Does anybody have experience with writing data to and
    > reading data from the Basic Stamp 2 EEPROM?
    > First I write some data to known positions at the
    > EEPROM. Then I start reading and checking them in the
    > debugging window, but only the first two are correct,
    > and the rest is corrupted. Also in the same moment
    > there are problems with the program execution, it
    > loops without an exit...
    >
    > Has somebody an idea what is going on?
    >
    > Thank you in advance.
    > Petar
    >
    >
    > __________________________________
    > Do you Yahoo!?
    > Yahoo! SiteBuilder - Free, easy-to-use web site design software
    > http://sitebuilder.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-29 08:53
    I am filling the program code the botom up, so I have
    plenty of space at the beginning of the EEPROM map. So
    I am sure that I am not overwriting anything - I keep
    a look at the EEPROM map all the time.
    Is there something else that can be hapenning?

    --- Sam <hard-on@t...> wrote:
    > you are probably overwriting your program code with
    > variables (they
    > are all stored in the same eeprom). To check where
    > your program code
    > stored in the eeprom ends, check the memory map.
    > Then start writing
    > your variables to the eeprom only at addresses after
    > your program
    > code.
    >
    > --- In basicstamps@yahoogroups.com, Petar Ljusev
    > <ratep2001@y...>
    > wrote:
    > > Does anybody have experience with writing data to
    > and
    > > reading data from the Basic Stamp 2 EEPROM?
    > > First I write some data to known positions at the
    > > EEPROM. Then I start reading and checking them in
    > the
    > > debugging window, but only the first two are
    > correct,
    > > and the rest is corrupted. Also in the same moment
    > > there are problems with the program execution, it
    > > loops without an exit...
    > >
    > > Has somebody an idea what is going on?
    > >
    > > Thank you in advance.
    > > Petar
    > >
    > >
    > > __________________________________
    > > Do you Yahoo!?
    > > Yahoo! SiteBuilder - Free, easy-to-use web site
    > design software
    > > http://sitebuilder.yahoo.com
    >
    >
    > 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/
    >
    >


    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    http://sitebuilder.yahoo.com
Sign In or Register to comment.