Shop OBEX P1 Docs P2 Docs Learn Events
Save FemtoBASIC Program - No EEPROM? — Parallax Forums

Save FemtoBASIC Program - No EEPROM?

HumanoidoHumanoido Posts: 5,770
edited 2009-10-02 18:23 in Propeller 1
I am using one prop chip with 32K RAM and no EEPROM.
FemtoBASIC language is loaded in and a long BASIC
program is manually typed in. What is the best way to
save this long FemtoBASIC program for reloading after
power off?

humanoido

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-10-02 14:24
    FemtoBasic only supports standard EEPROM and SD cards for storage. Obviously, you've got something attached to the Prop that is or pretends to be a PC running the Propeller Tool for the purpose of downloading FemtoBasic itself.

    You need some kind of persistent memory attached to the Prop for storing the FemtoBasic program. What are you willing to use? If it's something other than a standard I2C EEPROM or SD card (or mini-SD card), you'll have to modify FemtoBasic to handle it.

    An EEPROM doesn't have to be connected to I/O pins 28/29 (although that leaves other pins free). It could be connected to any unused pair of I/O pins (even and the next odd numbered I/O pin). The EEPROM size could be any multiple of 32K bytes and it can be a Ramtron FRAM.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-10-02 18:23
    I was thinking about a way to type the program
    into a section of the FemtoBASIC code (using the Editor),
    both then download into the Prop chip's RAM - then both FemtoBASIC
    and the program run from RAM. If the FemtoBASIC has
    provisions only to save to EEPROM or SD, then modifying
    it may prove difficult. Unless, someone knows a way to
    modify FemtoBASIC to accomplish this?

    It would give a method to load and save both FemtoBASIC and
    a program into one prop chip, without eeprom, and keep both
    the language and the program running by continual power.

    humanoido

    Post Edited (humanoido) : 10/2/2009 6:31:25 PM GMT
Sign In or Register to comment.