Possible to Program EEPROM Without Immediately Restarting Propeller?
one-zero
Posts: 5
On Propeller, is there a way to reprogram the EEPROM without immediately restarting the Propeller with the new code? Note that pins P28:P31 are not multiplexed with anything in the application. They are dedicated to the EEPROM and the serial host interface. The use case is I have a customer who wants to continue running with their current level code that's in Propeller RAM. Then, when it's convenient for them to restart their application, they can reset the Propeller and it will automatically use the new code stored in the EEPROM? The new code has already been fully tested on an exact copy of their hardware so there are no worries about it not working after the restart.
Comments
Make a jumper from FTDI chip to go to a GPIOs instead of Reset, and your software running on Prop will look for this pin and reprogram the eerprom.
You could use PropTool if you follow the rules of handshaking.
Or
Make a pin header on the board for I2C, use a USB to I2C dongle and use a PC program to send binary Prop software directly to eeprom.
Do you know if the Prop2 will allow direct loading of new code to EEPROM without a forced restart?
In propforth, the spin propgram that is the kernel and current dictionary (list of functions) is in EEPROM,and gets loaded into memory at powerup or reset. There is a word "saveforth" that write the current contents of hub RAM into EEPROM. So if we create new definitions (in forth source code text files) and have loaded these into the prop, we can "saveforth" and the new definitions will be there next powerup. Also, we can "forget" any new definition(s) and do saveforth, and they will NOT be present next powerup.
This works on any prop board capable of running SPIN.
So basically, if your application can write to EEPROM, you can have it write whatever you want, including the contents of HUB RAM, modified as you like.