Programmer for the propeller
rtarbell
Posts: 7
Does Parallax sell the propeller programmer in their online store? Once my program is completed, and my propeller is installed on a circuit board, how do I permanently burn the program into the chip?
Comments
Graham
A: That's not possible, I should say not even for A LOT of money
Graham
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
The prop has no onboard flash/eeprom memory like many other micros.
on power-up, it looks for a connection to a computer, if there is one, it loads the data from the computer to its RAM, and it begins running the code.
if there is no connection, it looks for an EXTERNAL I2C EEPROM(like the 24LC256), if it finds one, it loads the program from there.
then, if there is no eeprom, it shuts down.
See the boot-up sequence in the Prop Manual:
www.parallax.com/dl/docs/prod/prop/WebPM-v1.01.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Holy parallel processing, Batman!
Post Edited (Mr Crowley) : 10/5/2007 9:34:16 PM GMT
Sorry for my lack of clarity in posting my question; I am used to PIC micrcontrollers, and when programming a PIC, generally a person would need these tools:
1) Source code from the assembler/compiler, compiled into a .hex file
2) A proper programmer that will program the PIC chip (some programmers use the computer serial port, some are USB)
3) The software driver that (usually) comes with the programmer to tell your computer how to use the programmer
Not having programmed a Propeller chip yet, the idea of programming an EEPROM instead of the chip itself is new to me. So if I have this straight:
1) I program the EEPROM by my computer with an EEPROM burner
2) I install the EEPROM into my proto board with the Propeller chip on it (making sure my connections are correct)
3) The chip runs my entire code by reading it off of the EEPROM
What size/type EEPROM is recommended? Is it bad if I choose an EEPROM that is larger than what is needed for my code?
Review the Demo Board schematics and the Prop Plug/Clip manual.· If you are designing a board you can design a USB to Serial connection to the Propeller.· As Mr Crowley pointed out below you should also review the boot sequence in the Propeller Manual.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark of imagination is all it takes for an idea to explode
You connect your serial cable ( PropPlug and so on ), then in the Propeller Tool press F11. This compiles the program, creates the Propeller equivalent of a .HEX file, downloads it to the Propeller where it is 'burnt to Flash' ( in this case written to the external Eeprom ), and it then runs this code whenever the Propeller is powered-up or reset.
The other way of thinking of it is that the PropPlug is the equivalent of a Microchip ICD2 / PicKit2 using ICSP to do the programming.
Just out of curiosity, by any chance... do you have an amateur radio license?
Rich
- a Prop
- a PropPlug
- a crystal
- 5 wires on a solderless breadboard...
Who needs an EEPROM?
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 10/6/2007 11:20:52 AM GMT
Warning: Don't use anything smaller! The whole RAM (32 MByte) must fit!
You communicate with the Prop chip via a serial interface to your PC.· After you write a program on your PC, you download it directly into the RAM of the Prop chip and run it.· But the RAM in the Prop is volatile and will forget when the power goes off.
So, you connect an external EEPROM chip to the Prop Chip.· Then, when you download the program from your PC via the serial interface into the RAM of the Prop chip, you also have the option to tell the Prop chip to futher download that program into the EEPROM chip's non-volatile memory.
Once the EEPROM chip has been programmed for the first time by the Prop chip, from then on, when the Prop is powered up, it will load it's RAM from the program stored in the EEPROM.
So, there is no direct programming of the EEPROM by the PC - it is done by the Prop chip.· There is no "burner" needed and there is no need to move chips around from one place to another.
Look at the schematics of the various prototyping kits from Parallax to see how the EEPROM is wired to the Prop and how the serial (either USB or RS232) is connected to the Prop chip.· This will help you understand the relationship between the components.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Stan Dobrowski