BS2pe memory
NetBoy
Posts: 2
I am using a BS2p24 for a small project and have run out of program space. The specs show 2k for the BS2, 8k for the BS2p24, and 16k for theBS2pe.
While programming in the BS2 mode {$STAMP BS2}, the 'Memory Map' goes up to 7FF. (correct)
When I switch to the BS2p24 mode {$STAMP BS2p}, the 'Memory Map' remains at 7FF. (incorrect by my understanding).
When I switch to the BS2pe mode {$STAMP BS2pe}, the 'Memory Map' still remains at 7FF (again, incorrect by my understanding)
Am I truly out of memory?
Can anyone help me with what I might be doing wrong?
Can anyone confirm the BS2pe has more usable memory? If so, how do I use it?
Thanks in advance.
Net
While programming in the BS2 mode {$STAMP BS2}, the 'Memory Map' goes up to 7FF. (correct)
When I switch to the BS2p24 mode {$STAMP BS2p}, the 'Memory Map' remains at 7FF. (incorrect by my understanding).
When I switch to the BS2pe mode {$STAMP BS2pe}, the 'Memory Map' still remains at 7FF (again, incorrect by my understanding)
Am I truly out of memory?
Can anyone help me with what I might be doing wrong?
Can anyone confirm the BS2pe has more usable memory? If so, how do I use it?
Thanks in advance.
Net
Comments
The memory space is not contiguous and the file will need to be broken into separate pieces.
I will need to use a directive like {$STAMP BS2p, File1.bsp, File2.bsp}.
Net
Any BS2 with p suffix has 8 "slots" of program EEPROM . You need to define a program file for each one of them.
Here is an example of resulting directives:
The additional files need to be added manually.
' {$STAMP BS2e,LCD_Module_0,Clock_Module_1,WWVB_Module_2,Pulse_Module_3 }
' {$PBASIC 2.5}
' {$PORT COM1}
The key command is RUN x , check the documentation on how to use it.
It is basically a variation of GOTO command .
Keep in mind that you have up to 8 program files which all share the same RAM for variables.
Plus additional goodies - scrachpad RAM and data memeory ( BS2pe).
You will see the slot selection in the editor once you add your additional file(s).
Hint - keep saving your files manually, sometime the editor forgets to remind you to save it when you exit it.
Vaclav