More space?
CassLan
Posts: 586
Hi Guys, its been a while, I'm glad to see some of the same faces as well as new ones.
I've undertaken a project using the propeller and I just have one question...
Is there anyway to add more space for the program?
I'm assuming that the program loads into prop ram from the eeprom so the prop ram is your programs size·limit?
I'm also figuring on writing all data to the eeprom or other external device to not waste any room.
Thanks,
Rick
I've undertaken a project using the propeller and I just have one question...
Is there anyway to add more space for the program?
I'm assuming that the program loads into prop ram from the eeprom so the prop ram is your programs size·limit?
I'm also figuring on writing all data to the eeprom or other external device to not waste any room.
Thanks,
Rick
Comments
1) at start up you loaded a cog with a pasm code that as one of its tasks can load the eeprom contents)
2) when you need to load new cogs that cog downloads the pasm code into where it had been residing in ram
3) execute the cog.
If you wanted to shut down the loader cog you would have to first copy it's code back from the eeprom to ram or you would not be able to start it again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod $50CAN has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module.
There are a variety of routines in the Propeller Object Exchange to access I2C memory. Look at "Basic_I2C_Driver" for a simple set of routines to do this. Loading a new program is a little more difficult. There's an EEPROM loader that's part of FemtoBasic from the Object Exchange. You can incorporate this loader (and its I/O routines) into your programs.
http://forums.parallax.com/showthread.php?p=776824
Mike didn't mention his Propeller O/S ... it is the closest "available" solution to your problem. Perhaps Mike didn't understand your question. Maybe I misunderstood ....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
I forgot about loading from sd . I included a uSD card reader on my propmod for loading files never thought of for code
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod $50CAN has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module.
Can one squeeze more "program" into propeller using FemtoBasic ?
How does FemtoBasic perform relative to spin?
Does FemtoBasic require statements like "20 goto 10"?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
2) No
3) FemtoBasic is written mostly in Spin, so you're working with two layers of interpretation. The main advantage to using FemtoBasic is as a "scripting" program. For example, BoeBotBasic is a version of FemtoBasic that uses the programming port for its console and it has special statements added for things like servos, a PING))), and an HM55B compass. It's very easy to write robotics programs and speed is not that important. Other versions of FemtoBasic have been made with their own specialized statements for particular uses.
4) Yes. There's a simple manual and a couple of sample programs included in the download from the Object Exchange.
I think what will end of taking most of the space is text, and other UI stuff, so I'll put that data on the eeprom as suggested.
Rick