Problem with PropellerLoad object
idbruce
Posts: 6,197
Hi Y'all
I built a portable Propeller chip programmer from a Propeller DIP Plus Kit and wired the kit according to Parallax documentation. I also added a DB9 connector for serial downloading of software into other Propeller chips using the PropellerLoader object found in OBEX. My connections from source to destination are as follows, and as suggested by another forum member:
The receiving Propeller chip(s) all have DB9 serial connections and are also wired according to Parallax documentation. I know that the serial circuitry for the receiving boards is correct, because I have no problems downloading from the PC to these chips.
I built a portable Propeller chip programmer from a Propeller DIP Plus Kit and wired the kit according to Parallax documentation. I also added a DB9 connector for serial downloading of software into other Propeller chips using the PropellerLoader object found in OBEX. My connections from source to destination are as follows, and as suggested by another forum member:
P1 -> RES
P2 -> 2.2K resistor -> P31
P3 -> 2.2K resistor -> P30
VSS -> VSS
*Please note that these connections differ from the notes provided in the object
To sum my problem up all in a nutshell, all goes well until the PropellerLoader object makes its first call to the WaitBit method, at which point it times out and aborts.P2 -> 2.2K resistor -> P31
P3 -> 2.2K resistor -> P30
VSS -> VSS
*Please note that these connections differ from the notes provided in the object
The receiving Propeller chip(s) all have DB9 serial connections and are also wired according to Parallax documentation. I know that the serial circuitry for the receiving boards is correct, because I have no problems downloading from the PC to these chips.
Comments
The receivers are Propeller Proto Boards, Item Code 32212, http://www.parallax.com/Store/Microcontrollers/PropellerDevelopmentBoards/tabid/514/CategoryID/73/List/0/SortField/0/Level/a/ProductID/423/Default.aspx
which are wired with the alternative serial connection provided by the Propeller Data Sheet V1.2. See the attachment.
Thanks for responding.
Bruce
Anyone else with bright ideas?
Yes I have an unmodified board to test functionality. I will just have to wire up a test connector. I assume the test connector would attach directly to the right angle 4 pin header. Is my assumption correct?
Bruce
Okay, here is the deal. I had a test led light up where the error was occuring. The programming error led did not light up when testing the new board, however there is now way to verify that the program loaded and ran because it is a blank board. I assume that was the problem. Tommorow, I will move my wires from one four pin header to another four pin header and test again. But I think that was my solution. Thanks Kuroneko.
Take a peak back here tomorrow for the final result. If it fixed the problem, you just made my day a happy day Okay a month! If it works you have no idea what this means to me. A three year project very close to completion, and now it will be easy to load programs.
Bruce
The problem with the Propeller Loader and your interface circuit is, that the RX, TX and DTR lines are inverted by the transistors.
I think you can connect the Pins P0..2 of your Programmer directly to the DB9 connectors, but you need to invert the levels inside the PropLoader object. I have attached a modified object, but I can not test it. Series resistors of 2k2 in the lines to P1 and P2 should work also.
The other solution is to use the original object and add some Inverters on the Programmer board.
Schematic attached. The Inverters also protect the Prop a bit.
Andy
Problem solved!!!!!!!!!!!!! It works!
It was a simple matter of bypassing the alternative serial circuitry. Looking back now, it was a huge waste of time to wire up three boards that way. Oh well, I have a working solution now.
Thank you soooooooooooo much Kuroneko for talking me through this whole ordeal, from our initial discussion through the troubleshooting stage. You made my life a whole lot less stressful, because I can now program three machines, without a laptop or by being physically tied to any computer. WOW! Way too cool. IOU
And thank you Ariba, I appreciate the thought and effort you must have put into your response. However, I apologize that I could not get back here sooner to update the post that the problem had been resolved.