AnsweredHot!PIC32MZ1024EFM100 ICD4 programming issue

Author
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
2019/03/20 02:03:15 (permalink)
0

PIC32MZ1024EFM100 ICD4 programming issue

Hi all,
Currently I am working with a controllerless TFT display and designed a PCB with a PIC32MZ1024EFM100 to drive the TFT screen (NewHaven). On the PCB, the programming signals PGC, PGD and MCLR are connected as advised by the datasheet. PGC and PGD are connected to programming port 1 (see PGD and PGC connection.png).
The trouble is, when I try to program the device from MPLABX with an ICD4, it keeps telling me:
Failed to get Device ID. Please make sure the target device is attached and try the operation again.
Connection Failed.
I connected scope to observe the signals and noticed that the PGD signal is a bit weird: it starts at a lower voltage and rises a bit.
Some screenshots are attached. The magenta line represents MCLR, the yellow line PGC and the green line PGD.
In an other thread, someone had about the same issue and in that case, a bypass capacitor was not soldered well. I therefore replaced all my bypass capacitors, added even an e-cap of 22uF close to the 3v3 of the chip, I also selected low-speed programming on the ICD4, but nothing helped.
 
Can someone point me into the right direction? It can't be that hard to get the chip programmed? This is my first PIC32MZ design, in previous designs I used PIC32MX and numerous PIC18 and PIC16 devices but never encountered this problem before.
 
Thanks in advance!
 
Reini

Attached Image(s)

#1
MisterHemi
Junior Member
  • Total Posts : 100
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: 0
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/03/20 03:04:26 (permalink)
0
You might want to include a photo of that part of the circuit.
Are there any other components connected to PGC or PGD?

My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.13.3) and MPLAB X IDE v4.15
 
Curiosity PIC MZ EF, PIC24F Curiosity, and XPRESS EVAL BOARD (PIC16F18855).
#2
MisterHemi
Junior Member
  • Total Posts : 100
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: 0
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/03/20 03:12:49 (permalink)
0
Here's a photo of how I have it on a PIC32MZ2048EFH144 board. 
The programming signals are connected directly without any other components in the signal path.
Only the MCLR signal is connected to a power on reset circuit.
 
 

Attached Image(s)


My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.13.3) and MPLAB X IDE v4.15
 
Curiosity PIC MZ EF, PIC24F Curiosity, and XPRESS EVAL BOARD (PIC16F18855).
#3
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/03/20 03:17:02 (permalink)
0
Hi, PGC and PGD are connected solely to the programming/debug port. No other components are connected to it. I used two 47 Ohm resistors in series with the PGC and PGD signals.
I also tried programming port 2, by removing all connections to other components and connecting the ICD4 to it. When I observed the PGC and PGD signals again, I noticed that PGD is not starting at a lower voltage, but has the same shape as PGC. But also in this case, MPLABX keeps telling me:
Failed to get Device ID. Please make sure the target device is attached and try the operation again.
Connection Failed.
#4
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/03/20 03:21:05 (permalink)
0
According to the datasheet, I am allowed to place resistors up to 100 Ohms in series with PGC and PGD
 
#5
arpatel
Starting Member
  • Total Posts : 50
  • Reward points : 0
  • Joined: 2019/01/09 23:24:14
  • Location: 0
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/03/24 22:57:49 (permalink)
0
Hi
I have got the same issue with PIC32MZ2048EFM064.
MPLAB X IDE reporting error that Failed to get device ID....
Tried different programmer PICKit3/4 and ICD 3, but no success.
Has anyone found the solution? Or is it just the bad MCU ?
#6
LostInSpace
Super Member
  • Total Posts : 220
  • Reward points : 0
  • Joined: 2016/03/11 22:47:59
  • Location: 0
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/03/28 17:17:36 (permalink)
0
If the programming (PGC/PGD) pins are reversed you will get this message. If the pic isn't powered and you said the programmer will supply the power, you will get this message. Also if the part is dead, this is what you will see.
 
HTH
#7
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/02 00:59:35 (permalink)
0
SteveHageman
If the programming (PGC/PGD) pins are reversed you will get this message. If the pic isn't powered and you said the programmer will supply the power, you will get this message. Also if the part is dead, this is what you will see.
 
HTH


After replacing the chip with a new one, the problem persisted. All powerpins have 3v3. So I will check the signals again :-) I'll let you know...
#8
NKurzman
A Guy on the Net
  • Total Posts : 17155
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/02 06:20:50 (permalink) ☼ Best Answerby Reini 2019/04/05 02:52:23
5 (1)
Including Avdd?
#9
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/04 07:01:41 (permalink)
0
NKurzman
Including Avdd?

Yes, that too, but the firm who produced my two prototype boards placed a 33k resistor instead of 10 Ohms in series with 3v3 and Avdd. So maybe thats my problem. I will replace it tomorrow with the right resistor and let you know. Fingers crossed grin: grin
 
Thanks for the tip!
 
Kind regards,
 
Reini
#10
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/05 02:52:02 (permalink)
4 (1)
NKurzman
Including Avdd?

YES!! victory grin: grin After replacing the resistor with a 10 Ohm, programming works as expected.
 
Thank you for pointing me into the right direction!
 
With kind regards,
Reini
#11
karadev
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2012/07/20 02:23:59
  • Location: 0
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/10 07:36:03 (permalink)
0
can you give a some little picture about connection for 10ohm resistors to pic how you do that ?
best regards from now :)
#12
qhb
Superb Member
  • Total Posts : 9673
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/10 21:38:05 (permalink)
0
karadev
can you give a some little picture about connection for 10ohm resistors to pic how you do that ?
best regards from now :)

He is talking about a resistor he had installed in series between the 3V power supply and the AVdd pin.
The board had been manufactured with 33k resistors when they should have been 10 ohms.
Zero ohms would also work.
i.e. you don't NEED the resistors, what you need is NOT TOO MUCH resistance in the supply to the AVDD pins.
 
 
#13
Reini
Junior Member
  • Total Posts : 39
  • Reward points : 0
  • Joined: 2015/09/11 03:21:24
  • Location: 0
  • Status: online
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/13 09:17:07 (permalink)
4.5 (2)
qhb
karadev
can you give a some little picture about connection for 10ohm resistors to pic how you do that ?
best regards from now :)

He is talking about a resistor he had installed in series between the 3V power supply and the AVdd pin.
The board had been manufactured with 33k resistors when they should have been 10 ohms.
Zero ohms would also work.
i.e. you don't NEED the resistors, what you need is NOT TOO MUCH resistance in the supply to the AVDD pins.
 
 


I like to decouple my analog voltages from my digital :-) So I use a low pass filter made of a 10 Ohms resistor and a 100nF capacitor. It is a very common thing to do, but yes, it will work without it too :-)
#14
qhb
Superb Member
  • Total Posts : 9673
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: PIC32MZ1024EFM100 ICD4 programming issue 2019/04/13 15:19:12 (permalink) ☄ Helpfulby Reini 2019/04/15 06:19:37
0
Indeed. I was just clarifying to karadev that they did not need to add 10R resistors in just to make their chip work.
 
#15
Jump to:
© 2019 APG vNext Commercial Version 4.5