Freezing PIC !


Closed Thread
Results 1 to 16 of 16

Thread: Freezing PIC !

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Picante

    At First,You should try to read the device and compare its memory to the "original" HEX ...

    with another programmer ...

    CONFIG Word writing ( or loading ) problem ???

    My easypic5 made it to me once or twice ... as the config word location depends on which IDE was used ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Bonjour Alain,

    So, what you suspect is that something changes in the HEX file while transferred to the device?

    Thanks!

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Something like that ... I know some IDEs which place the config word in another file than the HEX , whose programmer often losts the "header file" ( where config is located ) location...

    most of time when there has been compilation errors before ... and an errorless compilation (since the IDE opening ) is always followed by a good chip programming.


    Ahhh ... reliable IDE's ... where are you ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Thanks Alain,

    I am not sure how you mean: “most of time when there has been compilation errors before ... and an errorless compilation (since the IDE opening ) is always followed by a good chip programming”… and where exactly do you suggest I look for the misplaced file in my environment?

    Remember I am kind’ a green in this area! :-)
    Last edited by PICante; - 14th September 2008 at 16:35.

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


    Did you find this post helpful? Yes | No

    Default

    it’s a proto board and the programmer is permanently connected (ICSP kind).
    This would be my 1st suspect. If the device programmer isn't releasing /MCLR it would
    cause it to hang. It may also be causing problems by leaving it connected to the PIC pgm
    and data pins.

    Have you tried disconnecting your programmer & resetting power to your proto board?
    Regards,

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

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


    Did you find this post helpful? Yes | No

    Default

    Hi Bruce,

    Yes I have tried this even though this programmer is supposed to be internally disconnected as it puts the PIC in run mode. I also tried to removed pull-ups and pull-downs while programming.
    However as mentioned before the PIC accepts and run any program not compiled after this “disease” strikes? And this includes programs running in the exact same hardware.

    Thanks Bruce.

  7. #7
    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

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 11:00
  2. Replies: 67
    Last Post: - 8th December 2009, 03: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, 15: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, 22:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00: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