Dual Application/ EEPROM
JonnyMac
Posts: 9,105
I have this project that could benefit from having dual applications in the same hardware, and I can't fit both into 32K.
My memory seems to think that somebody has done this -- I just cannot remember how or where.
My memory seems to think that somebody has done this -- I just cannot remember how or where.
Comments
-Phil
64KB EEPROM would be easy.
If you use two 32KB eeproms, then you could use an XOR chip (one as an invert/non-invert say A0, then another to invert the A0 to the second eeprom). Inversion/noninversion can be selected using a pullup and shunt to ground.
IIRC there is code to load an upper 32KB eeprom.
The loader is limited to 25KB, but that could be fixed if all the code was PASM.
You'll get the idea looking at the code. Rewrite as required.
EEprog32Kplus needs modification to actually do programming. It's set to read only now.
As is, no warranty. I haven't used these in a while.
Secondary EEPROM loading thread/code
Thermistor Thread
I couldn't find it, but I agree with you that there is another thread here somewhere that answers your exact question........
How do you want to switch the programs? Manually via switch? Programmatically? Automatic or according to user input? Only one time at boot? Random? How fast do you want to switch to the other program? Do both programs make use of the same hardware (drivers)?
I also have an HMI consisting of a few buttons and an LCD. Ideally, I could use the HMI to switch between the applications (the switch does not have to be fast; one of the applications is parameters setup for the main app).
If so it's easy. One of the FSRW SD card drivers allowed to "restart" the propeller with an EEPROM-file stored on SD-card. I think Femto-Basic can do this as well.
http://www.robotworkshop.com/robotweb/?page_id=578
Robert
Note that most OS'es take longer to boot. But of course you could change the actual boot code.
Here is my PropOS http://forums.parallax.com/showthread.php/138251-A-Propeller-OS-that-can-run-on-multiple-hardware...?highlight=propeller
Look at the end.
Jon, if you require any help in getting PropOS running, just shout. The only thing you should remember, is that I often forget to change the default xtal back to 5MHz.
Everything except connectors will be SMD.