View previous topic :: View next topic |
Author |
Message |
Colin Brenton Guest
|
Invalid target id |
Posted: Thu Nov 26, 2009 6:31 am |
|
|
Hi,
I am attempting to use a PIC18F6527 using an ICD2 and CCS, and I get the invalid target device ID (expected=0x9A, read=0x9B).
As usual, the help files are worse than useless, so I wondered if anyone else has seen this before, and knows how to fix it.
Thanks,
Colin |
|
|
Colin Brenton Guest
|
|
Posted: Thu Nov 26, 2009 7:13 am |
|
|
Sorry,
I should have thought to say, this hardware used to work, and the ICD and MPLAB works with the same project on different hardware. Could the PIC be faulty?
If it were easier, I'd swap it and confirm, but I don't wnat to unsolder 64 pins, then find out that it isn't the problem after-all...
The setup with the error can be programmed, however, and it does work, the only problem is the popup saying the device ID is wrong... |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Thu Nov 26, 2009 9:25 am |
|
|
Is the device set properly under the Configure -> Select Device window?
Have you ever programmed this project with an ICD2 before?
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
Colin Brenton Guest
|
|
Posted: Fri Nov 27, 2009 3:33 am |
|
|
Hi Ben,
Thanks for the reply. The device seems to be correct under the settings tab, and I've included the right .h file for the PIC, I'm lost as to how the ID can only be one away from what it should be.
Regards,
Colin |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Fri Nov 27, 2009 6:56 am |
|
|
See Register 25-13 in the PIC18F872X Family Data Sheet for DEVID1 values.
ID 0x9A == PIC18F6527
ID 0x9B == PIC18F8527
It's a strange error because the hardware ID is read from the chip and hardly involves any processing.
Do you really have the PIC18F6527 and not a PIC18F8527 mounted? Not likely because the first is a 64 pin TQFP and the second an 80 pin TQFP package.
Another (unlikely) option is Microchip to have screwed up. Both chips are identical, except for the number of pins and ID number. My guess is the ID-number is programmed into the chip while packaging and maybe something went wrong here?
You can try telling the ICD-2 the device under test is an PIC18F8527. The only difference is the larger chip to have an external memory bus and cause you are not using this it shouldn't be a problem to select the larger device. |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Fri Nov 27, 2009 2:42 pm |
|
|
Yes. The ID that's read back has nothing to do with any of the software in MPLAB. It's merely the setting in MPLAB and what it tells the ICD what should be there.
As ckielstra has already said, check the hardware carefully. Something else may be amiss. _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
Colin Brenton Guest
|
[SOLVED] Invalid device ID |
Posted: Thu Dec 03, 2009 6:11 am |
|
|
Well, it seems it was the device. I replaced it, and the error no longer appears. The only thing I can think it was was damage from static...
Not easy components to work with by hand...
Thanks to all who have replied to this thread. |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Thu Dec 03, 2009 3:19 pm |
|
|
Just need the right tools.
I do prototype SMT all the time. It's easy -- WITH the right tools.
Soldering iron by hand?
Yea.. that can be a challenge. :D
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
|