PIC32MK0512GPE100PIC32MK0512MCF064 PIC32MK0512MCF100 PIC32MK1024GPD064 PIC32MK1024GPD100 PIC32MK1024GPE064 PIC32MK1024GPE100 PIC32MK1024MCF064 PIC32MK1024MCF100
PIC32MK0512GPE100 has more than one pair of PGECx and PGEDx pins. You can use any pair, but you must use them as a pair. For example, if PGEC2 is used for ICSPCLK, then ICSPDAT must be connected to PGED2.
All VSS and VDD pins must be connected. Even if one of these pins is not connected, programming may fail.
TDO pin will toggle at high frequency during programming. Make sure this does not harm your circuit.
Dual boot architecture
PIC32MK0512GPE100 has two boot sectors, called boot sector 1 (0x1fc40000) and boot sector 2 (0x1fc60000). These memory locations are not used directly. Instead they are mapped to lower boot alias (0x1fc00000) and upper boot alias (0x1fc20000). Boot sector 1 may be mapped to lower alias while boot sector 2 is mapped to upper boot alias. Or the mapping may be reversed - boot sector 1 is mapped to upper boot alias and boot sector 2 is mapped to lower boot alias. Mapping may change - see datasheet for details.
Because Microchip XC32 compiler produces HEX files where boot sector uses addresses of lower boot alias (0x1fc00000), NSDSP recognizes these addresses as valid. Any memory ranges belonging to lower boot alias (0x1fc00000-0x1fc05000) are programmed to boot sector 1 (0x1fc40000-0x1fc45000). Any addresses from upper boot alias (0x1fc20000-0x1fc25000) are programmed to boot sector 2 (0x1fc60000-0x1fc65000). Direct addressing of boot sectors (0x1fc40000-0x1fc45000 and 0x1fc60000-0x1fc65000) is consifered invalid and will cause errors.
When NSDSP is used to read memory, boot sector 1 is reported as lower boot alias (0x1fc00000-0x1fc05000) and boot sector 2 is reported as upper boot alias (0x1fc20000-0x1fc25000) regardless of the actual mapping of the sectors on the chip.
Such arrangement guarantees consistency - if you read a HEX file from the device, then re-program it onto other device, both devices will have identical programming.
NSDSP firmware contains all the necessary provisions for debugging PIC32MK0512GPE100 with NSDS. Once NSDS support for this device is compliete, NSDS will be able to debug it.
TDO pin does not work during debugging.
© 2007-2017 Northern Software Inc. All Rights Reserved.