SX Key Error: Vpp generation failed ?
T&E Engineer
Posts: 1,396
I made a soldered circuit version almost identical to Gunthers·schematic in his book: Programming the SX Microcontroller (p. 6). The SX-Key program comes up with an error: Vpp generation failed. when it attemps to program the SX-28. However, the SX-key programs the SX-28 fine in my PDB. I have a 5v regulator (7805) circuit with capacitors as normal on my circuit with 4.98 vdc.·Gunther's circuit is not that difficult to build but it always·comes up with the error when trying to program the SX-28. I have tried 2 chips and both program fine on the PDB.
I have checked my circuit many times and don't see any bridges or solder problems.
Any help here?
Thanks.·
I have checked my circuit many times and don't see any bridges or solder problems.
Any help here?
Thanks.·
Comments
If it is, is the power supply powering the 7805 delivering enough voltage and/or amperage?· If the power supply is only delivering slightly above the dropout voltage of the 7805, under load this voltage can drop, causing the 7805 to stop regulating.· If the power supply capable, the problem may lie with your 7805 and/or regulating circuit.
Nate
http://forums.parallax.com/showthread.php?p=600796
This is my circuit.
and the sx28 is substantial. It is best to mount the resonator as close as possible
to the sx28 osc pins, and the sxkey pin header right next to that.
That is how I always setup a sx and never have had this error.
Also, keep any wires as short as possible.
regards peter
Post Edited (Peter Verkaik) : 8/12/2006 11:25:47 PM GMT
As Peter has said, either the supply is sagging (4.9V won't work), or one of the OSC pins cannot be brought to 12V (this usually happens when you have an oscillator clocking the SX).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"You're braver than you believe, stronger than you seem, and smarter than you think" Christopher Robin to Pooh
·
I can also take the resonator out of the project soldered board socket and it still gets the error too.
Other ideas to try?
???
To be clear, you can program that sx28 using the DPB, but not when it
is inserted in your breadboard, right?
Then, after you programmed it in the PDB, and reinserted in your breadboard,
does it then run as you expect (with sxkey not connected to the header)?
If it does then the resonator circuitry is working. If not, there is something
really wrong with your breadboard resonator cicuitry. Bad resonator perhaps?
regards peter
I can program the SX-28 in the PDB with or without the resonator. I take the SX-28 out of the PDB and put it into my socket on the soldered board I made in the picture. It runs fine then. If I try to connect the SX-Key to program a SX-28 (with or without a resonator) (on my soldered circuit board)·- I get the error. The programming works on the PDB but not on my soldered board. It doesn't make any sense to me.
Are the pins from that header all making good contact with
the sxkey (eg. pins not too thin)?
Have you measered the headerpins connections to the sx28
with a multimeter? That should give all zero ohms if all headerpins are correct.
(power off before measuring).
Edit: you do have a pullup resistor on the mclr pin?
Its just there seems not to be looking at·the picture.
A pullup resistor on the rtcc pin is also recommended.
regards peter
Post Edited (Peter Verkaik) : 8/13/2006 5:20:08 AM GMT
I think I am going to rebuild this on a solderless breadboard and then try another solder breadboard (if it works) unless any more answers can be found. My circuit is identical to the PDB schematics. The PDB still has no Vpp error so I know the SX-Key is good.
Your sxkey if fine, but also is your board, as a programmed chip runs fine.
So I suggest you just remove the entire sxkey header,
that includes ALL header wires, inclusive VSS and VDD.
After removing the sxkey header parts, check if the programmed
chip still runs fine, then resolder the sxkey header (or a new header).
If the chip then still does not program, then perhaps a new board.
regards peter
All is working!
Thanks again Peter and Bean!
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"You're braver than you believe, stronger than you seem, and smarter than you think" Christopher Robin to Pooh
·
although I'm a bit late, as you altready have fixed the problem, let me add some details concerning the "Vpp generation failed" error message:
The SX-Key has an on-board generator for the 12V programming voltage required to erase and program the SX, and the on-board SX checks if this voltage is available. When this is not the case, the SX-Key returns an error status to the IDE which then shows the "Vpp generation failed" error message.
Reasons for a missing (or too little) Vpp can be:
- SX-Key supply voltage too low.
- Too much load on the SX-Key's OSC 1 pin. This can be caused by a short, and external component attached to the OSC1 pin, like a clock generator, or OSC1 and OSC2 pins interchanged, as in your case.
- SX-Key defective.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G