Shop OBEX P1 Docs P2 Docs Learn Events
Data occupies same location as...error??? — Parallax Forums

Data occupies same location as...error???

orendaclorendacl Posts: 44
edited 2010-05-11 22:24 in BASIC Stamp
Hello,
My program is rather long, and after adding a couple of for loops I get the subject error.
I have been able to manage the error by removing·or dashing out ' DEBUG.
I have also been able to manage to error by changing my LCD output text from two lines to one:
example:
···· SEROUT 14, 84, [noparse][[/noparse]"INSTRUCTIONS:", 13]
··· 'SEROUT 14, 84, [noparse][[/noparse]"INSTRUCTIONS", 13,
··· '··············· "FOR USE: ..."]

Can someone please tell me if there is a better way to solve this problem (error)???

I have had to remove a lot of instruction text and abbreviate lines that a user would read on my LCD display in order to get rid of the error: DATA OCCUPIES SAME LOCATION....

thanks!

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2010-05-11 22:24
    Each SEROUT and/or DEBUG command takes considerable memory. If you have two lines in a row sending data serially out, try combining them into one line instead so the command is used only once. Alternatively if you're sending a lot of text you could write a single subroutine to handle all text strings and store the text as DATA statements. If you still have problems you can get a BS2p which will allow you to have all text/data located in another bank of EEPROM memory and you can access it from your current program. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    ·
Sign In or Register to comment.