Freezing PIC !


Closed Thread
Results 1 to 16 of 16

Thread: Freezing PIC !

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Strange problem for sure. I would create two copies of the same program. Something simple
    like blink1.bas and blink2.bas. Compile blink1.bas and keep it in a separate directory outside
    of my usual code files directory.

    Compile blink2.bas and compare the two .hex files. The next time this happens, recompile
    blink2.bas and compare the .hex files again.

    If they're different you have it narrowed down to some part of the compile process. That
    should make it easier to nail down.

    I would also try reinstalling stuff one at a time. I.E. reinstall MCS, then test it before you
    reinstall PBP or MPLAB. It may be only one of these getting screwed up.

    I had some odd problems recently after installing XP service pack 3 where XP would not allow
    me to save a ton of various file extensions. I had to do this;
    http://www.winhelponline.com/blog/re...in-windows-xp/
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Nov 2007
    Location
    Chicago
    Posts
    5


    Did you find this post helpful? Yes | No

    Smile Freezing PIC

    I have experienced this when my programming cable is left plugged into the board.
    It doesn't release the PIC from reset is my theory.

    Also check to be sure your haven't left your PIC programmed for debug.
    Not sure that causes anything your experiencing but I had done that once before and while running the PIC would occasionally lock up and have to be reset.

    Good Luck

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Good point on the debug thing. A while back someone here was having a similar problem
    when using MCS to compile.

    They were clicking on ICD Compile/Program VS compile/program. And of course the PIC
    did nothing since it wasn't being controlled by the MCS ICD.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Dec 2007
    Location
    Sweden
    Posts
    73


    Did you find this post helpful? Yes | No

    Talking Back on tracks!

    It’s now all re-installed and works just fine again! Tried different variations of hardware and software but I couldn’t provoke it to fail again. There are no problems leaving the programmer connected all the time, the PIC starts running as soon as the programmer is finished. Only difference now is a slightly newer version of MPLAB the 8.10. I have followed Bruce advice to create two copies of a simple program and store one of them in a safe place if (God forbid!) it ever happens again.

    Wayne>
    Once I made a mistake using an NC micro switch on one of the pins used by the programmer and the programming failed. I can imagine some programmers can when connected disturb the PIC in a similar way. When I discovered my mistake I just needed to push and hold the switch while the programmer was running and it worked fine. (I took me awhile to find it though!).

    Thank you very much guys for being here!

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts