View previous topic :: View next topic |
Author |
Message |
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
[SOLVED] ICD3 funny behaviour |
Posted: Tue Jul 29, 2014 6:05 am |
|
|
I am programming a dsPIC33EP512GM304 using a ICD3 (Burnt out my U64 ) and MPLABX 2.10 with CCS 5.025.
I have the following problem. When I connect the ICD to the board and power up I can't program unless I plug out (leave the power on) run the selftest using the ICD3 Test module and swap cables.
I am getting the error
"Target Device ID (0x0) does not match expected Device ID (0x1bc00000)"
Any ideas? I do not use the PGED3 and PGEC3 pins for anything else.
Regards
Battling to register on microchip forums that is why I post here.
Last edited by alan on Wed Jul 30, 2014 5:25 am; edited 1 time in total |
|
|
drh
Joined: 12 Jul 2004 Posts: 192 Location: Hemet, California USA
|
Re: ICD3 funny behaviour |
Posted: Tue Jul 29, 2014 7:39 am |
|
|
alan wrote: | I am programming a dsPIC33EP512GM304 using a ICD3 (Burnt out my U64 ) and MPLABX 2.10 with CCS 5.025.
I have the following problem. When I connect the ICD to the board and power up I can't program unless I plug out (leave the power on) run the selftest using the ICD3 Test module and swap cables.
I am getting the error
"Target Device ID (0x0) does not match expected Device ID (0x1bc00000)"
Any ideas? I do not use the PGED3 and PGEC3 pins for anything else.
Regards
Battling to register on microchip forums that is why I post here. |
http://picforum.ric323.com/ _________________ David |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Tue Jul 29, 2014 7:53 am |
|
|
I'd suspect power, or slightly too long cables (these get particularly critical with these chips).
Look at: <http://www.microchip.com/forums/m775940.aspx> |
|
|
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
|
Posted: Tue Jul 29, 2014 8:33 am |
|
|
Thanks Ttelmah.
As long as I don't take the programming cable out and leave the board powered, I can reprogram as many times as I want.
Also the I use the tag-connect and it is placed about 10mm from processor.
It only happens at power up.
Regards |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Tue Jul 29, 2014 8:43 am |
|
|
In the ICD3 menu, how is it set to power?.
You need to make sure "Power target circuit from ICD 3", is not selected.
I suspect your board draws more than the ICD3 can supply. If it is set to power the board, this then overloads it's supply. When you re-connect after the main board is powered, the supply restarts.
Best Guess.... |
|
|
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
|
Posted: Tue Jul 29, 2014 8:59 am |
|
|
Not ticked, but gets interesting.
If I unplug the tag_connect at board level and then reconnect with board powered up can't program.
If I unplug the tag_connect at ICD side and reconnect can program.
Tried this about 5 times with consistent results as explained above.
At least I am making progress, hope so
Regards |
|
|
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
|
Posted: Wed Jul 30, 2014 5:26 am |
|
|
Soldered 10k resistors to Vcc on PGD and PGC lines and so far no problem.
Regards |
|
|
|