CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Invalid target id

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Colin Brenton
Guest







Invalid target id
PostPosted: Thu Nov 26, 2009 6:31 am     Reply with quote

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







PostPosted: Thu Nov 26, 2009 7:13 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Nov 26, 2009 9:25 am     Reply with quote

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







PostPosted: Fri Nov 27, 2009 3:33 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Nov 27, 2009 6:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Nov 27, 2009 2:42 pm     Reply with quote

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
PostPosted: Thu Dec 03, 2009 6:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 03, 2009 3:19 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group