Shop OBEX P1 Docs P2 Docs Learn Events
BS2pe Memory Usage — Parallax Forums

BS2pe Memory Usage

M HM H Posts: 7
edited 2008-04-29 03:29 in BASIC Stamp
Hey All,

I feel like this is ridiculously simple but I'm missing the obvious. I have a rather complex program that I was originally developing on the BS2. It quickly became apparent that I was going to need a lot more EEPROM space than I had as well as some scratchpad RAM. So, I order a BS2pe module, switch it out on my carrier board, change the $STAMP directive, and...

the compiler still serves up the "Data still occupies same location as program" error. How do I take advantage of all my extra memory? I think it probably has something to do with program slots etc, but it's all one program, and I'm not sure what to tell it...

Any pointers in the right direction?

Thanks so much!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-04-29 01:44
    Getting a larger EEPROM equipped Stamp does not automatically get you more program space. The memory is divided up into slots and you should think of these as separate programs. The BS2pe does have the STORE statement which lets you access data stored in a different slot than your program's slot. The message you're mentioning implies that you're using DATA statements to store information and that can be moved into another slot if you use the STORE statement to redirect READs and WRITEs. Read the Manual chapter on the STORE statement. There's also a Nuts and Volts column on multislot programming. I don't remember which one.
  • ercoerco Posts: 20,261
    edited 2008-04-29 02:27
    N&V multislot programming info at http://www.parallax.com/dl/docs/cols/nv/vol2/col/nv71.pdf·.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • M HM H Posts: 7
    edited 2008-04-29 03:29
    You guys are great [noparse]:)[/noparse]

    Thanks! I'm reading up... I'll be back with any q's.
Sign In or Register to comment.