Hot!PICKIT3 debug PIC16F18856-I/SS did not work

Author
doge
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/11/17 14:00:13
  • Location: 0
  • Status: offline
2018/07/11 14:07:16 (permalink)
0

PICKIT3 debug PIC16F18856-I/SS did not work

It worked last year, 
after one year a  few chips can not enter debug mode, the board work again after replace the chip. 
I believe the config bit DEBUG cannot set to ON somehow.   
// CONFIG2
//#pragma config DEBUG = OFF // Background Debugger->Background Debugger disabled
 
post edited by doge - 2018/08/02 14:31:54
#1

8 Replies Related Threads

    doge
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2016/11/17 14:00:13
    • Location: 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/11 14:14:45 (permalink)
    0
    The log for PICKIT3, target firmware/configure are same, used internal oscillator. only chip package is different
    ********************** PIC16F18856-I/SS did not work *****************************
    Connecting to MPLAB PICkit 3...
    Currently loaded firmware on PICkit 3
    Firmware Suite Version.....01.48.18
    Firmware type..............Enhanced Midrange
    Programmer to target power is enabled - VDD = 3.375000 volts.
    Target device PIC16F18856 found.
    Device ID Revision = 2002
    Device Erased...
    Programming...
    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x1fff
    configuration memory
    Programming/Verify complete
    The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.
    ************************ PIC16F18856-I/MV work *****************************
    Connecting to MPLAB PICkit 3...
    Currently loaded firmware on PICkit 3
    Firmware Suite Version.....01.48.18
    Firmware type..............Enhanced Midrange
    Programmer to target power is enabled - VDD = 3.375000 volts.
    Target device PIC16F18856 found.
    Device ID Revision = 2002
    Device Erased...
    Programming...
    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x1fff
    configuration memory
    Programming/Verify complete
    Running
    Halting...
    Target Halted
    post edited by doge - 2018/07/11 14:16:16
    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 16125
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/11 14:42:22 (permalink)
    +1 (1)
    What Version of MPLabX?  If it is Not V4.20, then try that.
    #3
    RISC
    Super Member
    • Total Posts : 5240
    • Reward points : 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/11 15:02:12 (permalink)
    0
    Hi,
     
    I noticed the power supply is 3.375V (pickit3 readout).
    It is a bit of a strange value . Is this voltage what you expect ?
     
    It seems your program starts execution and then stops.
     
    So it does indeed start debugging but it stops.
    Did you try to do step by step operation ?
     
    Can you show the configuration bits ?  (pay attention to BOR...)
     
    Regards
    #4
    DarioG
    Allmächtig.
    • Total Posts : 54080
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/11 15:11:56 (permalink)
    0
    Why? 3.375 seems "normal" to me, for ICD3... which used to go in 0.125 steps (normally)

    GENOVA :D :D ! GODO
    #5
    doge
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2016/11/17 14:00:13
    • Location: 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/12 12:23:20 (permalink)
    0
    I tried MPLabX V4.20, got the same error with PIC16F18856.
     
    Currently loaded firmware on PICkit 3
    Firmware Suite Version.....01.51.12
    Firmware type..............Enhanced Midrange
    Programmer to target power is enabled - VDD = 3.375000 volts.
    Target device PIC16F18856 found.
    Device ID Revision = 2002
    Device Erased...
    Programming...
    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x1fff
    configuration memory
    Programming/Verify complete
    The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and/or PGC/PGD settings.
     
    look through the CONFIG2: CONFIGURATION WORD 2: SUPERVISORS
    it working chip with data 17ff, (debug == on)
    the chip with 37ff (debug == off) cannot enter debug mode.
     
    But,
    both XC8 V1.36 and V2.0 cannot support the command, it created by MCCV2.0 
    #pragma config DEBUG = ON // Background Debugger->Background Debugger disabled
    I commanded it out, it is weird for with same code, some chips can enter debug mode, some chip do not.
    #6
    RISC
    Super Member
    • Total Posts : 5240
    • Reward points : 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/12 14:57:44 (permalink)
    +1 (1)
    Hi,
     
    I just recognized that the 2 packages you use do not have the ICSP pins on the same pin numbers....
    check carefully the page 9 of the datasheet....
     
    For any package except uQFN :
    RB6 = #27 = ICSPCLK
    RB7 = #28 = ICSPDAT
     
    for uQFN package 
    RB6 = #24 = ICSPCLK
    RB7 = #25 = ICSPDAT
     
    Regards
     
    post edited by RISC - 2018/07/12 15:12:05
    #7
    doge
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2016/11/17 14:00:13
    • Location: 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/13 08:31:05 (permalink)
    0
    I test two new board with brand new  chip PIC16F18856-I/SS, both debug mode work.
    two old board with same chip the debug mode cannot work, usually I use printf instead of debug mode.
    I do not why some chips cannot enter the debug mode even the configure bits setting are correct.
    #8
    RISC
    Super Member
    • Total Posts : 5240
    • Reward points : 0
    • Status: offline
    Re: PICKIT3 debug PIC16F18856-I/SS did not work 2018/07/13 08:46:40 (permalink)
    +1 (1)
    Hi,
    Do you use a recent MPLAB X version (v4.10 or more) ?
    Do you use a recent XC8 compiler version (v1.43 or more) ?
    Do the "new" PICs you just tried have the same mask revision as the old ones (when you connect the PIC to MPLAB X it gives a message in the output window which let you know the revision mask
    Regards
     
    #9
    Jump to:
    © 2018 APG vNext Commercial Version 4.5