SX52 Won't Program
Miner_with_a_PIC
Posts: 123
I finally installed my first sx52 on a custom board. Unfortunately it is failing to program. I have checked checked and rechecked all connections and wiring. Especially care has been taken to connect the osc1, osc2 and rails appropriately to the SX-KEY; the MCLR is being pulled high with a 10K + I have tried holding reset upon power up and/or depressing following power-up. There has been no error that I can find so far. The SXkey initially seemed to be programming the chip, with the write progress bar reaching completion. But the very simple flash an led program did not work, I was able to reprogram another couple of times and now nothing! I get both errors; Chip connection failed and SX-KEY not found on comport. The SX-KEY is okay as I have retested it on an SX28. Does anyone have any ideas? I oriented the chip according to the indented mark rather than the text orientation. Has there been any know orientation issues with these parts? Please let me know if you have any ideas.
JT
Post Edited (Miner_with_a_PIC) : 6/24/2005 3:51:41 AM GMT
JT
Post Edited (Miner_with_a_PIC) : 6/24/2005 3:51:41 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
could it be my older SX-KEY that isn't compatible with newer sx52s?
Post Edited (Miner_with_a_PIC) : 6/24/2005 8:25:25 AM GMT
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I doubt it is static related, I was and have been pretty cautious, I even had a 10 Mohm resistor handy to touch to the soldering iron/ground on the board. I am typically tend to be a bit overkill with those kinds of things. Additionally I have an SX28 that I have put through some really really nast shocks and even a few latch-ups. It works like a charm (of course it has been marked as: for experimental use only).
I have been following the traces and reheating solder joints. I have even electrically verified continuity between the SX_KEY header and the upper portion of the pins (right were they disappear into the IC casing). I am really curious what happened. I don't want to desolder this chip as they are easier going in than out. I have other boards and I may load another chip on one of those to answer the question of design versus chip/fab error.
Thanks
P.S. I am still open to ideas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JT
Post Edited (Miner_with_a_PIC) : 6/24/2005 6:11:04 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm curious about the wires you use to connect the key to the board. I know things have all worked out for you, but I'm confused as to why you do this. You say the key gets "A LOT" of use, but I'm not even sure what that means. Are you constantly plugging and un-plugging the key from your board or just leaving it on a board for days or weeks at time while working on a project?
If you are concerned about the strain of the key with a serial cable attached, just make a short ribbon cable connector to put between the SX-Key and the much heavier serial cable. Use a pair of IDC style D-Sub 9 connectors. You can get them anywhere, but here's Digikey's part numbers as a starter:
CMP09T-ND
CFP09T-ND
This is the catalog page online:
dkc3.digikey.com/PDF/T052/0025.pdf
Make the ribbon cable about a foot long or so. It weighs so little that it won't put any strain on the key as long as you rest the heavier serial cable on the desk and not hanging over the side, which would defeat the whole purpose.
Thanks, PeterM
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
James Newton, Host of SXList.com
james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
SX FAQ / Code / Tutorials / Documentation:
http://www.sxlist.com Pick faster!
I think that the use of the hardware that you suggested PJ along with a dedicated, anchored board/sx-key pair would ensure years of reliable use.
James, sometimes I program with the resonator in place due to laziness. Yesterday I was programming without the resonator connected. I know not following protocol can cause issues and even damage (mostly to the resonator), but living life dangerously can often be exhilarating!
JT
Peter's discussion is regarding the strain relief on the serial side of your SX-Key (the end your computer is connected to), extension of the lines the way you are doing is strongly discouraged for the reasons listed above.
I always incorporate a 4 pin 90 degree header on a board for the SX-Key to connect to, I always provide a large overlap for the SX-Key to be resting above the target board, this helps reduce strain. I have not experienced the high stresses you seem to be having, if I were I would simply place a couple 4 pin·vertical headers on both sides of·where the SX-Key is placed, this would create a cradle for the SX-Key to rest within so that stresses placed on the SX-Key would be transfered to the retaining headers and thus the target board.·Here's a quick sketch to·illustrate it.
Post Edited (Paul Baker) : 6/24/2005 8:15:16 PM GMT
I had problems loading the program in to the SX52's memory, this is a low speed operation and the cable lengths used probably would be less of an issue. I do however feel that the extra cable length did stress a marginality with the chip. I say this because I am now able to program with the extension. So there may be something I am missing. I have used this set-up several hundred times @ 50Mhz on numerous sx28s without failure to load or sustain the 50 Mhz clock. But you do get those occasional chips/board layouts that stress this 3" rule, so yes this is a good rule-of-thumb (and one I wasn't actually aware of the 3" rule for 50Mhz, thanks for the information!).
This whole discussion thread does point out how importantant locating your resonator and programming header adjacent to the chip is. Not doing so can cause headaches. I fortunately did not break this rule, but do have a little bit of a loop (inductance related to area) between the oscillator pins which is undesirable. I can always wire this out but I seem to be up and running. I have found that using a feedback resistor in parallel with the resonator is very handy at stabilizing the higher frequency crystals. Use them!!! The sx chips are digital parts but we live in an analog world, board layout is important especially at higher frequencies. What I did is not a show-stopper so thank goodness.
JT
Post Edited (Miner_with_a_PIC) : 6/24/2005 9:05:46 PM GMT
KenM, are you able to use that set-up without a resonator, using a 50Mhz driving frequency from the Key?
JT
Post Edited (Miner_with_a_PIC) : 6/25/2005 3:23:41 AM GMT
This weekend I will try to run a program with the SXkey and the set up shown in my previous post, then submit my results to this forum...
About programming, about 10% of the time I get a programming failure error message even with the SXkey plugged directly into the SX Tech board.
When this occurs, simply disconnecting the Key and reconnecting always resolves the problem....or simply trying again resolves the problem. To me it is usually just a minor nusiance.
Gunther who programs several SX's in a row mentioned in a previous post something about increasing the size of a capacitor on his programming board with good results.
Ken
Post Edited (KenM) : 6/25/2005 3:37:19 AM GMT
JT
P.S. Gunther what did you do? And which capacitor?
JT