• AVR Freaks

AnsweredHot!Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF

Author
Jason Watton
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2015/02/24 04:52:41
  • Location: 0
  • Status: offline
2020/06/29 10:14:12 (permalink)
0

Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF

Using the PIC32MZ EF family, datasheet DS60001320G.
The chip has two programming 'channels', PGEC1/PGED1 and PGEC2/PGED2.
Obvious comment: These pins are used for programming.
Section 2.4 of datasheet:
Ensure that the “Communication Channel Select” (i.e., PGECx/PGEDx pins) programmed into the device matches the physical connections for the ICSP to MPLAB® ICD 3 or MPLAB REAL ICE™
So... I have to program the device to set the channel on which to program the device?
Can someone please explain this logic? Chicken or egg, anyone?
#1
nigelwright7557
Super Member
  • Total Posts : 441
  • Reward points : 0
  • Joined: 2006/11/06 08:15:51
  • Location: 0
  • Status: offline
Re: Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF 2020/06/29 10:21:49 (permalink)
0
depends on which i/o pins you want to use
#2
andersm
Super Member
  • Total Posts : 2822
  • Reward points : 0
  • Joined: 2012/10/07 14:57:44
  • Location: 0
  • Status: online
Re: Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF 2020/06/29 10:40:31 (permalink) ☄ Helpfulby Jason Watton 2020/06/29 11:00:18
5 (2)
AFAIK, you can always program from any interface (as long as there's nothing conflicting on the pins, obviously), the config bits selects which interface is used for debugging.
#3
Jason Watton
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2015/02/24 04:52:41
  • Location: 0
  • Status: offline
Re: Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF 2020/06/29 10:59:13 (permalink)
0
Thanks - that makes much more sense.
(1) Is there anything you can suggest that would turn 'AFAIK' into 'fact'? I'll try (a) datasheet and (b) programming spec 60001145U.
(2) If true, does:
Pull-up resistors, series diodes and capacitors on the PGECx and PGEDx pins are not recommended as they will interfere with the programmer/debugger communications to the device.
... mean that all 4 pins must be kept clear of, for example, pull-up resistors?
Cheers...!!
#4
NorthGuy
Super Member
  • Total Posts : 6175
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF 2020/06/29 11:08:39 (permalink) ☼ Best Answerby Jason Watton 2020/06/29 11:40:44
5 (1)
Jason Watton
(1) Is there anything you can suggest that would turn 'AFAIK' into 'fact'? I'll try (a) datasheet and (b) programming spec 60001145U.

It is a fact.
 
Jason Watton
(2) If true, does:
Pull-up resistors, series diodes and capacitors on the PGECx and PGEDx pins are not recommended as they will interfere with the programmer/debugger communications to the device.
... mean that all 4 pins must be kept clear of, for example, pull-up resistors?
Cheers...!!



Only the pair you want to use for programming.
#5
Jason Watton
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2015/02/24 04:52:41
  • Location: 0
  • Status: offline
Re: Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF 2020/06/29 11:31:19 (permalink)
0
Damn...
Thank you! That's the clarity I needed.
That doesn't explain the problem, then... sad: sad
#6
ric
Super Member
  • Total Posts : 27652
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Programming Channel Selection PGEC1/D1 vs PGEC2/D2 PIC32MZ EF 2020/06/29 13:52:14 (permalink)
0
Jason Watton
That doesn't explain the problem, then...

You have not mentioned what this problem is.
Do note, reportedly the unused PGEDx pins will toggle during the programming procedure on some devices, which could be something you need to be aware of.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#7
Jump to:
© 2020 APG vNext Commercial Version 4.5