Shop OBEX P1 Docs P2 Docs Learn Events
Bs2p40 eeprom full — Parallax Forums

Bs2p40 eeprom full

Scott RichardScott Richard Posts: 1
edited 2007-12-04 14:55 in BASIC Stamp
yeah.gif·I was using the BS2 with 2K EEPROM and I filled the EEPROM.

I then purchased the BS2P40 with more I/O's and memory.
I have never used the BS2P40.
I changed the directive to ' {$STAMP BS2p} and got my new commands & I/O's but I still get EEPROM FULL.
It's supposed to be 8 x 2K EEPROM.
What am I doing wrong?

Please help,

··········· Scott
·

Comments

  • Computer Geek 101Computer Geek 101 Posts: 179
    edited 2007-12-04 14:20
    you have several program slots with the bs2p40 instead of one big program area. break up your program into several smaller programs. Use the RUN command to move between the various slots. In the {$STAMP BS2P} directive list the other sub programs.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-04 14:47
    There's a nice discussion of this here: www.emesystems.com/BS2SX.htm.

    As Computer Geek 101 mentioned, when you get 8 x 2K EEPROM, it's set up as separate 2K areas.
    You don't just get a larger "2K" area so your "EEPROM full" message won't go away by itself.
    Depending on how you've filled up the 2K space, there might be some relatively easy ways to
    squeeze the program down. If you've got a lot of messages, they're easy to move to other 2K "slots"
    as DATA statements, then have a subroutine in your program to transmit / display them. If you've
    got a lot of logic, there's often a lot of repeated stuff that can be moved to subroutines and called
    with GOSUBs.
  • GICU812GICU812 Posts: 289
    edited 2007-12-04 14:50
    How do you download a program to a different slot?
  • Computer Geek 101Computer Geek 101 Posts: 179
    edited 2007-12-04 14:54
    write seperate bs2p programs
    in your main program make the directive like this:
    ' {$STAMP BS2p, clock_x0.bsp, clock_x1.bsp, clock_x2.bsp}
    it will do it on its own
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-04 14:55
    The Basic Stamp Manual has a complete discussion of this starting at page 68.
Sign In or Register to comment.