Programs and Verifies, but won't run


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    6

    Default Programs and Verifies, but won't run

    Hello,

    My name is Robert and I'm here in Arizona programming a control board (PIC18F8723) for a high voltage refrigeration application. Things have been going fine for months programming and reprogramming, but today the melabs Programmer crashed on me for the first time right in the middle of programming. As I have never had that problem before, it leads me to believe this was the cause. After restarting the programmer, I attempted to program again and

    it programmed and verified, but nothing came up on my output screen, nor did my test LEDs on the board do their startup sequence.

    I shutdown the board and tried to program again with the same result. I tried an older version of my code, with still the same result. Testing of the connections between the processor and the screen seem fine. So I pulled out the backup board and plugged it in. An older version of the code that was on that backup board popped up on screen and appeared to work just fine. So I programmed it with the new code only to see it fall into the same pit of not starting after programming and verifying. Programming the old code back to the old board still proved unfruitful. The boards appear to be getting power. I tried another U2 programmer as well and still the same result.Short of testing more of the hundreds of tiny connections, I'm not sure what would be the next step in diagnosing this problem. There was no change to the setup file before the problem started, it must be something to do with the crash of the programmer, but then why would the second board program, verify and then have the same symptoms without the crash of the programmer.

    What would you do next to diagnose the problem?

  2. #2
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: Programs and Verifies, but won't run

    Did you try reinstalling the software?
    do you have some kind of blinking LED in the code to see if program is running?
    if not can you add this?

    I have had a couple of chips blown (my fault) for different reasons and a couple said they programed and verified but there was no I/O at all, and some just says the programmer cant recognize the chip. as far as programming the old chip with new code and not working but reprogramming with old code does, I'm not sure, is there alot of code changed? is there a OSC setting different? I found I was blowing chips because my programmer software was set to insert the code for telling the chip to use a external crystal, which overode my desire to use interal OSC. chip word turn on and blow because there was no xtal installed. it was a 50/50 result of same issue you have. sometimes it would reprogram and verify but no I/O.
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Programs and Verifies, but won't run

    Hi Robert,
    As I am totally unfamiliar with the MELabs programmer, this will be a W. A. G. so be kind, please.
    My idea concerns the config fuses. Are they set in your code, or do you set them manually in the programmer?
    Is there a possibility of an incorrect OSC. choice or MCLR set wrongly . . . ? Pretty much what WDMAGIC said huh? DOH !
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jul 2013
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: Programs and Verifies, but won't run

    FIXED!

    Thank you both of you for your responses. My contact also suggested checking the status of the oscillator crystal with an oscilloscope and the configuration settings. The settings appeared correct to him, so I went ahead and uninstalled and reinstalled the programmer software (updated from 4.50 to 4.51). The update must have reset all the configuration settings because it worked! Both boards are now up and running again with the original software that they crashed with.

    The problem appears to be that, in the case of a crash of the melabs programmer software while it is programming, the configuration settings get jumbled or lost and will program each subsequent board with the wrong settings even if you restart the program or try another set of code. It is technically beta so I don't blame the programmer. Hopefully crashes can be better handled in the final version!

Similar Threads

  1. PIC programs, resonator resonates, but does not run code.
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th August 2012, 01:47
  2. lost programs/programs rolled back
    By Chris Barron in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 10th February 2010, 00:22
  3. How to use TRIS on a ICD programs
    By timseven in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th August 2009, 01:12
  4. HELP W/programs
    By furmpf in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th February 2008, 13:45
  5. converting programs~
    By sanguine in forum Off Topic
    Replies: 27
    Last Post: - 14th July 2007, 12:41

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