eeprom limit in bs2 vs bs2sx
cayfordb
Posts: 22
Hi. New to the Basic Stamp world, but not new to the computer world. The BS2 is too much fun!
I have a bs2sx, and I'm running with the Mac version of the BS2 development system.
I find I'm running out of EEPROM due to too much code. I get the message something like "Out of EEPROM" when I hit Run. Seems that the compiler thinks I only have the EEPROM space from the BS2, not the BS2sx.
The memory map shows I have about 2k of EEprom, even though the bs2sx specs say there is 16k.
I reduced things to this little bit o code:
By varying the number in the DATA line, then bringing up the Memory map, I can see how much is used. Even with the BS2SX though, with about 2K used it taking up all the EEPROM.
Any ideas here? Could this be due to the Mac version of the Development System not knowing that the BS2SX has more memory?
My first accomplishment has been to recognize the remote codes from my Tivo remote control, my Onkyo Remote, and Sony remote. It works! Surprise, the bit order is reversed between the LIRC remote codes and the BS2 examples in the manuals and exercises.
Thanks in advance
-- Cayford
I have a bs2sx, and I'm running with the Mac version of the BS2 development system.
I find I'm running out of EEPROM due to too much code. I get the message something like "Out of EEPROM" when I hit Run. Seems that the compiler thinks I only have the EEPROM space from the BS2, not the BS2sx.
The memory map shows I have about 2k of EEprom, even though the bs2sx specs say there is 16k.
I reduced things to this little bit o code:
' {$STAMP BS2sx} ' {$PBASIC 2.5} fill_up_eeprom DATA (1990) DEBUG CLS, "Hello BS2!", CR
By varying the number in the DATA line, then bringing up the Memory map, I can see how much is used. Even with the BS2SX though, with about 2K used it taking up all the EEPROM.
Any ideas here? Could this be due to the Mac version of the Development System not knowing that the BS2SX has more memory?
My first accomplishment has been to recognize the remote codes from my Tivo remote control, my Onkyo Remote, and Sony remote. It works! Surprise, the bit order is reversed between the LIRC remote codes and the BS2 examples in the manuals and exercises.
Thanks in advance
-- Cayford
Comments
The BS2SX also has some Scratchpad RAM, which are accessible with the GET and PUT commands.
-- Cayford
Post Edited (cayfordb) : 3/30/2009 3:30:07 PM GMT