Hot!Programming error: "Target Device ID (0x0) is an Invalid Device ID"

Page: 12 > Showing page 1 of 2
Author
Revo
Starting Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2018/05/25 00:50:51
  • Location: 0
  • Status: offline
2018/10/05 05:21:54 (permalink)
0

Programming error: "Target Device ID (0x0) is an Invalid Device ID"

Good morning all!
 
I am implementing a testing bench using a PIC24F32KA. I have been using successfully the same chip for two months, writing almost 8000 lines of code without any problem. This morning (yesterday evening when i turned everything off it was OK), when trying to flash a new firmware as usual, MPLAB X IDE (v4.20) gave me the following error:
 
"Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device."
 
I was pretty astonished since it has been working without any problem for months. After reading some topics about this problem, nothing helped me (the hardware connection is ok, the PIC kit 3 used for programming is ok, the cable is ok) and i tried also to change all the part of the programming link (different cable, different pickit..). Nothing worked. In the end, i changed the PIC 24 (with a lot of effort!) and i was able to program it without the error.
 
Now, after almost two hours of testing and one or two re-flashing, the error came up again! The microcontroller is working properly in the circuit, i can give him commands with serial and everything on the board works perfectly, BUT i can't reprogram it with the new firmware. At this point, i really don't know what to do. Any suggestion would be really appreciated! Thanks in advance!
 
Summary:
 
MCU: PIC24F32KA
IDE: MPLAB X IDE v4.20
PROGRAMMER: PIC kit 3
ERROR FROM MPLAB: "Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device."
post edited by Revo - 2018/10/05 05:23:27
#1

31 Replies Related Threads

    JackG
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2011/05/06 08:09:43
    • Location: Vermont, USA
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 06:21:07 (permalink)
    0
    If you are not doing a power off/on reset just before programming, try that.
       -Jack
    #2
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 06:27:25 (permalink)
    0
    JackG
    If you are not doing a power off/on reset just before programming, try that.
       -Jack


    Thanks for the advice! Already doing that but doesn't help!
    #3
    Jim Nickerson
    User 452
    • Total Posts : 5735
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 06:46:12 (permalink)
    0
    Device ID 0 usually indicates there have been no changes on the PGED line.
    #4
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 07:05:46 (permalink)
    0
    JANickerson
    Device ID 0 usually indicates there have been no changes on the PGED line.


    Don't know it this can help, but when i press "load" on mplab, i tried watching the PGED line with the oscilloscope, and i see data being transmitted, even if at the end this error results in the command line.
     
    EDIT: something strange just happened. Now i tried to insert the pickit in the ICSP connector (to try another time) and it stopped the MCU from working. After removing the pickit and resetting power to the board, the microcontroller still doesn't start, as if the firmware was somewhat "corrupted" or don't know what else (all the supplies are ok). Now i can't use it anymore, need to solve the problem and reprogram it!
    post edited by Revo - 2018/10/05 07:08:21
    #5
    Jim Nickerson
    User 452
    • Total Posts : 5735
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 07:07:58 (permalink)
    0
    It seems the Pic Kit is sending data but the PIC is not responding.
    Are you programming or debugging ?
    #6
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 07:10:14 (permalink)
    0
    JANickerson
    It seems the Pic Kit is sending data but the PIC is not responding.
    Are you programming or debugging ?


    Sorry i posted an edit while you were answering. Anyway, i am programming, not debugging, but also pushing debug gives the same error.


    #7
    Jim Nickerson
    User 452
    • Total Posts : 5735
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 07:17:46 (permalink)
    0
    Did you place the scope directly on the PIC PGED pin ?
    #8
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 07:24:41 (permalink)
    0
    JANickerson
    Did you place the scope directly on the PIC PGED pin ?




    Yes, exactly!
    #9
    NorthGuy
    Super Member
    • Total Posts : 5199
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 18:02:34 (permalink)
    0
    Looks like there's something on your board which kills PICs - high voltage, ground problems etc.
    #10
    qhb
    Superb Member
    • Total Posts : 8712
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/05 22:00:41 (permalink)
    5 (1)
    Has the PK3 been used with a different version of MPLAB/X in the meantime?
    I have seen a PK3 get into a state where it always reports ID=0. Selecting a different family (so new firmware is downloaded into the PK3), then coming back to the desired family, is sometimes enough to fix it.
     
    #11
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 01:36:00 (permalink)
    0
    NorthGuy
    Looks like there's something on your board which kills PICs - high voltage, ground problems etc.




    I didn't use a different device with the pickit, so i assume this is not a problem. In addition, i also tried to change pickit...
     
    So probably, the best possibility is indeed a physical damage to the MCU. In the last days i started testing a stage of the board, which is actually isolated from the logic digital part, so i didin't expect any interaction between the two, but it seems that this could be the only cause (the only thing that changed with respect to the previous months!). 
    Given the error of mplab, do you expect that a particular pin of the MCU was damaged with an overvoltage/overcurrent of some kind? Like something on VDD/GND (very unlikely given the topology of my board) or an analog input pin?
     
    Thanks again!
    #12
    qhb
    Superb Member
    • Total Posts : 8712
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 03:22:15 (permalink)
    0
    Revo
    I didn't use a different device with the pickit, so i assume this is not a problem.

    I said " a different version of MPLABX", not a "different device".
     
    #13
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 04:42:30 (permalink)
    0
    qhb
    Revo
    I didn't use a different device with the pickit, so i assume this is not a problem.

    I said " a different version of MPLABX", not a "different device".
     




    Sorry, i read in a hurry. Anyway no, this is not the case, but thanks for the advice ^^
    #14
    Jim Nickerson
    User 452
    • Total Posts : 5735
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 05:34:27 (permalink)
    0
    I wonder which OS/PC you are using ?
    #15
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 06:07:36 (permalink)
    0
    JANickerson
    I wonder which OS/PC you are using ?




    OS is widows 10, about the configuration i don't have details now (office PC). Do you think this could be related?
    #16
    Jim Nickerson
    User 452
    • Total Posts : 5735
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 06:09:01 (permalink)
    0
    Is there a corporate/work fire wall and virus protection in place ?
    #17
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 06:21:59 (permalink)
    0
    JANickerson
    Is there a corporate/work fire wall and virus protection in place ?




    Yes, there is a commercial licensed anti virus with his firewall (don't remember currently the brand).
    #18
    Jim Nickerson
    User 452
    • Total Posts : 5735
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 06:23:32 (permalink)
    0
    Can you test on a PC/LapTop that does not have the corporate anti virus/firewall or temporarily disable it ?
    #19
    Revo
    Starting Member
    • Total Posts : 39
    • Reward points : 0
    • Joined: 2018/05/25 00:50:51
    • Location: 0
    • Status: offline
    Re: Programming error: "Target Device ID (0x0) is an Invalid Device ID" 2018/10/06 06:29:15 (permalink)
    0
    JANickerson
    Can you test on a PC/LapTop that does not have the corporate anti virus/firewall or temporarily disable it ?




    I think i can disable it momentarely, will try this on thursday when i get back at the office!
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5