Programming/Updating the Propeller via REALBASIC?
DavidM
Posts: 630
Hi,
What is involved in loading/programming the propeller via a dedicated piece of software written in say REALBASIC? ( for PC or MAC)
The reason I want to do this is to allow users of my FINISHED PRODUCTS to UPGRADE the PROPELLER FIRMWARE via a SIMPLE STANDALONE SOFTWARE UPDATER APPLICATION? This would be download from the internet.
I do not want the user to use the SPIN application for this!
Any Ideas?
has anyone done something similar?
regards
Dave M
What is involved in loading/programming the propeller via a dedicated piece of software written in say REALBASIC? ( for PC or MAC)
The reason I want to do this is to allow users of my FINISHED PRODUCTS to UPGRADE the PROPELLER FIRMWARE via a SIMPLE STANDALONE SOFTWARE UPDATER APPLICATION? This would be download from the internet.
I do not want the user to use the SPIN application for this!
Any Ideas?
has anyone done something similar?
regards
Dave M
Comments
Check out this thread (cataloged in Graham Stabler's thread index): http://forums.parallax.com/showthread.php?p=591445.
Post Edited (Mike Green) : 11/5/2007 7:46:23 AM GMT
I would be interested in such a thing too. It would have to support an RS232 port.
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
I had a quick read of that thread, but I did not understand it. I found another thread regarding PYTHON, I had a look at the code in XCODE as the MAC does PYTHON, no explanation and it seems messy NO GUI , Isn't it just a matter of creating a FILE from SPIN, then transmitting that BINARY FILE to the prop via serial? I can easliy creat a NICE interface in real basic, How hard can this be?
My main query is that IT CAN BE DONE, as I don't need it yet ( but down the track), But I need to know if there are any special hardware requirements, I just want to use the standard serial port!
If I get to do this I will share the REAL BASIC app with anyone, ( thats assuming it works!)
Regards
Dave Metus
This is a rough scetch.
The downloader has to reset the Propeller (via DTR? line) send some snc-bytes and then download the code. This was a not-so-rough scetch. The pointer to the PYTHON script was meant as a reference of how to do it in detail.
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
So other info would be
BAUD RATE??,
BIT/BYTE Manipulations?
VERIFICATION?
etc
Dave M
Some threads:
<http://forums.parallax.com/forums/default.aspx?f=25&m=211304&g=211339#m211339>
<http://forums.parallax.com/forums/default.aspx?f=25&m=150887> At the end of the page is a code sniplet in Pascal.
<http://forums.parallax.com/forums/default.aspx?f=25&m=161911> The Python loader.
Looking at the Python loader, I see it works with 115200Bd. But the speed is not critical.
The trick to understand is, that the bits to be sent to the Propeller are coded into bytes of the RS232-stream. Think of it as abusing the RS232 for Morse code.
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
Ok , I can see that there has been some work already done on this subject, I shall read some more!
Thanks
Dave M
Getting to grips with the Eeprom image encoding when sending is the key to success and there are a number of different ways to do that, via a serial port uses some 'clever trickery' which isn't too hard to understand once things fall into place.
Is there any way in VB to make an application scriptable?
Rich