Program loading but not running
kylekenj
Posts: 2
I created a program that would run on the quick start board so I build a PCB for to run it using a minimum board like http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropellerHardwareConnections.pdf. I was able to get the first board I built to read the chip and program after fixing my connections but it fried because I wasn't filtering my power supply. I fixed that on my next board and the propeller will read off the prop plug and I can program the ram and the eeprom but the program won't work I then tried to take a simpler program and used this code from ganster gadget.
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
pst :"Parallax Serial Terminal"
PUB main
pst.Start(115200)
dira[0] :=1
repeat
outa[0] :=1
pst.str(string("LED ON",13))
waitcnt(clkfreq+cnt)
outa[0] :=0
pst.str(string("LED OFF",13))
waitcnt(clkfreq + cnt)
I checked everything with a voltmeter and everything looks good coming in. It loaded but doesn't seem to work. I am not sure what is wrong.
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
pst :"Parallax Serial Terminal"
PUB main
pst.Start(115200)
dira[0] :=1
repeat
outa[0] :=1
pst.str(string("LED ON",13))
waitcnt(clkfreq+cnt)
outa[0] :=0
pst.str(string("LED OFF",13))
waitcnt(clkfreq + cnt)
I checked everything with a voltmeter and everything looks good coming in. It loaded but doesn't seem to work. I am not sure what is wrong.
Comments
If that runs, it's confirmed fried PLL
Note to the guys @Parallax.... Please get rid of these examples that do not show bypass caps!!! I've seen several posts about this issue recently. Might help the "Beginner Friendly" image