Propeller accepts program but will not run
Jon Keinath
Posts: 146
I have been working on a propeller based program and all of a sudden the propeller will no longer run the program after the new program is installed. Here is what I have tried.
1] Verify power good.
2] Reset board.
3] Download simple "blink led" program. (Suspect board downloads and verifies to both RAM and EEPROM)
4] Use RCFAST, RCSLOW, and Crystal w/ & w/o PLL.
5] Verified simple "blink led" program runs on different propeller [propeller development board]. (It does in all modes above)
The suspect propeller is on a board that I designed and populated myself, based on diagrams available, and uses the propeller plug for its programming interface. It has been running off and on for a many months without issue. I don't know exactly, but the issues seemed to start at some point yesterday after I removed the prop plug it no longer ran.
Is there anything else I can try to get this prop spinning again, short of trying to replace the surface mount prop, through hole crystal, or both? (or populate a new board?)
Thanks!
1] Verify power good.
2] Reset board.
3] Download simple "blink led" program. (Suspect board downloads and verifies to both RAM and EEPROM)
4] Use RCFAST, RCSLOW, and Crystal w/ & w/o PLL.
5] Verified simple "blink led" program runs on different propeller [propeller development board]. (It does in all modes above)
The suspect propeller is on a board that I designed and populated myself, based on diagrams available, and uses the propeller plug for its programming interface. It has been running off and on for a many months without issue. I don't know exactly, but the issues seemed to start at some point yesterday after I removed the prop plug it no longer ran.
Is there anything else I can try to get this prop spinning again, short of trying to replace the surface mount prop, through hole crystal, or both? (or populate a new board?)
Thanks!
Comments
It sounds like all your hardware pieces are working. If you suspect the board still after running the tests you have run, please explain more, I may be missing something. #3 and #4 indicate the hardware is ok, so I suspect the program that is failing.
What was the last thing you changed in the program that won't run? Did you add code to use a hardware component you hadn't used before? Did you add software that might use more COGs? Could be a power issue.
Added code to a started COG that causes a stack issue? If you have room, make your stacks larger.
It always helps to post the code, post pictures, post schematics. The more info, the easier to help.
-Phil
Here is the simple code for testing:
Is there any reason you are actually working with PIN 20 in your code and referring to it as P16 in your comments?
Is the LED on P20 or P16? If it is really on P16, you of course won't see it blink when you toggle P20 in the code.
PCB_Bottom.pdf
PCB_Top.pdf
Schematic.pdf
The only reason for the pin comment mismatch is because I copied the code from here: http://www.parallaxsemiconductor.com/quickstart2 and changed the pins, but not the comments.
Fair enough! I was just eliminating the kinds of mistakes I make!!
Could you have cracked a solder joint or something around the PropPlug pins when you removed it last time?
Nice looking board! It's always good to see Propellers in commercial applications!
-Phil
Is this a problem or am I reading something wrong?
From my reading of the copper layers, it looks like several all of the ground pins are not connected to ground.