Propeller programming timing documentation
Bean
Posts: 8,129
in Propeller 1
I need to make a stand-alone propeller programmer for our contract manufacturer.
I have found a couple threads about doing this, and some code, but nothing complete.
Is there a detailed document that explains the timing of how to program a propeller ? And to read the contents of the EEPROM back to verify that it programmed correctly.
I've looked in the manual and datasheet, but nothing there...
Thanks,
Bean
I have found a couple threads about doing this, and some code, but nothing complete.
Is there a detailed document that explains the timing of how to program a propeller ? And to read the contents of the EEPROM back to verify that it programmed correctly.
I've looked in the manual and datasheet, but nothing there...
Thanks,
Bean
Comments
http://forums.parallax.com/discussion/comment/1295168/#Comment_1295168
Chip's original thread from 2006:
http://forums.parallax.com/discussion/86311/propeller-loader
That is about as foolproof as it gets plus it could program an optional serial number into each device (checking it first) and keep track of the ones it had programmed.
Actually, my pcbs normally have a right-angle 4x2 pin header mounted on the Prop board and my cables have a 4x2 socket header, so the programmer uses a socket header too.
have a Look at this
Greetings from Nuremberg, Germany
Werner
The programmer might be a propeller, but it might not.
I thought there would have been an app note about this, but I just couldn't find it.
How do you read-back the EEPROM contents ? I'm pretty sure the Prop tool does that.
Bean
I suppose you have to upload a program to do it in the hub.
Bean
there is a tool by @PhiPi to upload a stub and download the EEPROM contents from WINDOWS (at least) - sorry I don't have the link here ...
or as Peter said - If you provide the headers you can read/program the EEPROM directly
The spin code is slow enough that some of the delays are implied. Had to add explicit delays to make it work.
Thanks guys....
Bean
What I was suggesting is that your CM might have a production EEPROM programmer that would program and verify the image before putting into the assembly.
EEPROM verification by the Propeller is done using a checksum that is part of the EE image. This is a bit of code I wrote from a project that allows pre-compiled code to be loaded from an SD card. It duplicates the EEPROM verification process.
found this in my prop pdf's folder
This is the protocol used to program the prop from a PC as I understand it.
This I do via a usb serial device.
But I 'thought' they were only good for asynchronous serial protocol- not serial bit streams without start and stop elements. So obviously I'm wrong- so where do I find how to use these usb serial devices in this 'bit bang' mode?
Dave
In the examples, varying number of payload bits are sent per UART byte. Calibration is 2 payload bits per byte. and full data can be packed up to 3 payload bit per byte
eg ====\_._/=\_._/=\_._/=.=.
Oh I LOVE it!
to me that is genius.
Thanks
Dave
reading 8 bits of spin code while running a rolling uart bit inserts.
decimal 1, 8, 64 is added in: startbit-1x01x01x-stopbit
Novice code as I just learned C# that week.
https://forums.parallax.com/discussion/138549/c-prop-serial-boot-loader-example-for-the-silabs-cp2110
Thanks !!! That is exactly what I was looking for.
Bean
Maybe this could be interesting for you.