Programming by a UART Device other than the clip?
Steel
Posts: 313
Is it possible to program the Propeller by any UART device that talks at 115.2K?
I am just wondering, because I will have an RF Module as part of my project that has an RX/TX at 115200, and on the other end, I will have a matching module connected to the PC's RS232 port.
I don't see any problems, but I just wanted to make sure...would I be able to hook up the RF module, and program the Propeller over RF?
I just think it would be really cool to be able to update firmware while the product is in the field.
·
I am just wondering, because I will have an RF Module as part of my project that has an RX/TX at 115200, and on the other end, I will have a matching module connected to the PC's RS232 port.
I don't see any problems, but I just wanted to make sure...would I be able to hook up the RF module, and program the Propeller over RF?
I just think it would be really cool to be able to update firmware while the product is in the field.
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
You could write your own Propeller program to download a program from a file on a PC to another block of EEPROM or to an SD card file, then load and run that once it's downloaded correctly, but you couldn't do this directly from the Propeller Tool or the Stamp Editor.
Is it also possible to write my own downloader that uses no SD card or EEPROM to store the file, but only the HubRAM ?
I think about an Assembly code that runs in a new Cog and downloads a serially received program into the HubRAM beginning from Address $0000. But, when the whole code is downloaded, how can I start this code? Is it possible to start a new Spin-cog (with start address $10) from the Assembly Cog and then stop the Assembly cog, or is there another way?
Andy
The main issue is that you'd need something on the PC end as well. You can't use the Propeller Tool because of the timing issues which apply to both sides (the Propeller and the Propeller Tool).
The PC Application is not the problem for me (http://forums.parallax.com/showthread.php?p=665055 10. posting).
"Some assembly code that starts the Spin interpreter in the same cog that's doing the downloading." This is exactly what I need.
I will make a search for Chips posting, and will have a look to the sdspiFemto.spin (I have used this before to start programs from SD card).
Cheers
Andy