Shop OBEX P1 Docs P2 Docs Learn Events
After Loading, Program Not Running, Sometimes — Parallax Forums

After Loading, Program Not Running, Sometimes

George-ILMGeorge-ILM Posts: 9
edited 2010-05-21 02:17 in Propeller 1
Problem:· In the last days the the Propeller has not always run a program after seemingly correct program loading.

I have been working through the Propeller Education Kit Labs and have on numerous occasions successfuly loaded and run programs.

-- No wiring changes have been made since·things worked reliabily.

-- Voltage at the Propeller is 3.28 volts.

-- With the Propeller Tool, F7 always identifies the chip on COM8.

-- When the battery is NOT connected, and the Propeller Tool·IS connected to Propeller and to the PC via USB, the power LED no longer dimly glows.· Is this significant?· I believe that the LED used to glow in this setup.

Regardless, after seemingly successful loading of a program from the Propeller Tool·via F10·or via F11,·programs only sometimes "run".

Any suggestions on what might be wrong?

-- George

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2010-05-20 14:24
    This is sounding like a loose or broken wire.

    Do a check of your wires with a meter and make sure they are in good shape.

    Are you using solid core wire or stranded? I've had solid core wire break inside the plastic making it "look" they
    it was still connected, but creating the same momentary functionality that you have described.

    Let us know how you get along.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Are you Propeller Powered? PropellerPowered.com
    Visit the: PROPELLERPOWERED SIG forum kindly hosted by Savage Circuits.

    Post Edited (Oldbitcollector) : 5/20/2010 4:30:37 PM GMT
  • George-ILMGeorge-ILM Posts: 9
    edited 2010-05-20 15:17
    That's an interesting thought.··

    The jummpers on the breadboard use solid wire.· It is certainly possible there is an intermittent break in a stripped wire as you suggest.· Or perhaps a short lead into a breadboard socket making intermittent contact.·

    In the last hour my programs have been loading and then running without problems.· Fifteen minutes ago I just had my very first "lost Comm 8 contact" message during program loading.· Not sure what caused that.

    Thanks for your feedback.· As soon as I see another failure I will check all of the wiring.

    George
  • LeonLeon Posts: 7,620
    edited 2010-05-20 15:19
    Are both supply pins connected and decoupled close to the chip? It's important.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Leon Heller
    Amateur radio callsign: G1HSM
  • George-ILMGeorge-ILM Posts: 9
    edited 2010-05-20 15:38
    Yes, both grounds and +3.3 are connected.· The breadboard is wired according to the instructions in the Propeller Education Kit Lab book, so I ASSUME the decoupling is sufficient.

    However, I recently noticed that the chip seems not to be running at 80 MHz but something much slower.· When I comment out...

    ···· '· _xinfreq = 5_000_000
    ···· '· _clkmode = xtal1 + pll16x

    the programs run (blink LEDs) at an appropriate rate.

    More strangeness.

    -- George
  • LeonLeon Posts: 7,620
    edited 2010-05-20 15:41
    Do you have two decoupling capacitors close to the chip?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Leon Heller
    Amateur radio callsign: G1HSM
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-05-20 16:26
    I just looked at the manual for the PEK, and there are no bypass caps specified or included in the kit -- only filter caps for the regulators. This could well be the problem. George, if you happen to have a couple 0.1uF ceramic caps lying around, try connecting them across Vdd and Vss on both sides of the chip. Be sure to clip the leads as short as possible while still making a good connection.

    -Phil
  • George-ILMGeorge-ILM Posts: 9
    edited 2010-05-20 17:49
    0.1 uF bypasses installed now on both sides.· Let's see this afternoon if that makes a difference.

    Thanks, George
  • George-ILMGeorge-ILM Posts: 9
    edited 2010-05-21 02:17
    Installing the 0.1 uF bypass capacitors at the Propeller power terminals did make a difference in the success of getting programs to run following download.· HOWEVER, ...

    Tonight I swapped out the Propeller, and...

    -- Programs load and run fine,
    -- Propeller processing speed is correct, and
    -- The power indicator glows dimly with the USB Prop programming tool installed and 3.3 volt power off.

    I have no idea why the original Propeller module "failed" in such a manner.

    Thanks for all of your suggestions.

    -- George
Sign In or Register to comment.