Code for 2nd Prop on Protoboard?
Rayman
Posts: 14,825
Looks like I'll need a second Prop to do a good job with my Chess program...
(One for graphics and I/O and one for game code.)
I'm thinking about soldering a DIP Prop onto a Protoboard.· I'd like to use the upper 32kB of the 64kB I2C EEPROM to store the code for the second Prop.· But, I'll need code to program that from the PC and to load the second Prop with it.
Anybody already done this?
(One for graphics and I/O and one for game code.)
I'm thinking about soldering a DIP Prop onto a Protoboard.· I'd like to use the upper 32kB of the 64kB I2C EEPROM to store the code for the second Prop.· But, I'll need code to program that from the PC and to load the second Prop with it.
Anybody already done this?
Comments
http://obex.parallax.com/objects/61/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Another option might be to have both props run the same program image, and differentiate their roles based on a pin state. You could then have one prop boot and then bring the second one out of reset. If you need lots of HUB RAM then you will have to figure out a way to reclaim it from the unused program code.
[noparse][[/noparse]edit]
Come to think of it, I think FemtoBASIC has a way of re-booting the chip from the upper half of memory.
[noparse][[/noparse]/edit]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 9/30/2008 4:57:21 PM GMT
You can use the I2C routines from FemtoBasic to download from any EEPROM. Take a look at the comments at the beginning of sdspiFemto.spin.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
You'd need a means of launching that downloader as required but if you put a switch on the DTR/RESET signal to the master Prop you can use the PropPlug as you normally would. If you wanted to get really fancy you could use an extra I/O line, switch DTR between RESET and that and leave a cog running in the background to do the download.
Going all out, you could write your own downloader which loads a chip downloader to RAM which then programs up the top and bottom 32KB from two images, re-boots both when done.
Since I'm very busy/lazy, I'll probably just try Mike's "DongleBasic" since it sounds like it'll do the job without any code work on my part.
This is something that almost everyone considers eventually. When you get it ship shape, please consider putting the raw form into the OBEX.
Thanks,
Rich