Programming a propeller / Eeprom?
gis667en11
Posts: 73
Hello everyone!
Is this the standard programming procedure?
Disable the propeller with the reset pin
Interface with the 0 adressed Eeprom directly by connecting to the i2c bus and fill it with the new propeller image.
Allow propeller to boot, causing it to load the new program from Eeprom to hub.
Is this how it's typically done with programmers/FTDI chips?
Or are you "supposed" to interface with the propeller directly somehow?
Is this the standard programming procedure?
Disable the propeller with the reset pin
Interface with the 0 adressed Eeprom directly by connecting to the i2c bus and fill it with the new propeller image.
Allow propeller to boot, causing it to load the new program from Eeprom to hub.
Is this how it's typically done with programmers/FTDI chips?
Or are you "supposed" to interface with the propeller directly somehow?
Comments
If there's no PC attached or if the special serial protocol isn't seen, the boot program attempts to read the first 32K from the attached EEPROM into RAM and starts the Spin interpreter using the contents of RAM.
So, the Propeller is designed to connect to a PC's serial port via some kind of serial adapter. The DTR line is used to generate a reset signal for the Propeller so opening the serial port will reset the Propeller. The PC is assumed to be running one of the Propeller IDEs (Propeller Tool, SimpleIDE, or PropellerIDE) that will handle the downloading for you. The serial protocol is documented and there's a Spin program available that will run on one Propeller and download a program to a second Propeller.
Look at the schematics for any of the Propeller boards for examples of how to do the connecting.
You could hold the Propeller in reset and directly fill the attached EEPROM with a new program as you suggested, but that's not how the Propeller was intended to be used.
Isn't the SI (RXD) P31 and SO (TXD) P31 ?
Except for those confusing Prop plug TXD --> Prop "TXD" fritzing diagrams!!!
So yes.
Host TXD --> Prop RXD P31
Host RXD <-- Prop TXD P30