8 DSU.DID vs SW-DP ID

The SW-DP ID is a 32-bit ID comprised of an 11-bit JEDEC Manufacturer’s ID Code (assigned to Microchip), the 20-bit Device ID and a fixed LSB of 1. The SW-DP ID can be read through the SWD interface using the ARM IDCODE command. The device ID to be used by the external debugger or programmers must be within the DSU [DSU.DID register] located at address 0x4100_00118 (external address). Only the lower 16 bits of this register are used for the purpose of external tools to identify the device; the upper 16 bits must be masked off on read.

Many of the fields in the SW-DP ID and the DSU.DID register are the same but positioned differently.

Refer to the following figure for how the SW-DP ID and DSU.DID are correlated, and refer to the PIC32CX-BZ3/PIC32CX-BZ36 and WBZ35x Module Family Data Sheet (DS70005541) for the specific variant part number values.

The Mask ID for the PIC32CX-BZ3/PIC32CX-BZ36 family of devices is 0x9E, and JEDEC Manufacturer’s ID Code for Microchip is 0x029. Refer to the PIC32CX-BZ3/PIC32CX-BZ36 and WBZ35x Module Family Data Sheet (DS70005541), as the Device ID and Revision ID vary from variant to variant.
Figure 8-1. DSU.DID VS SW-DP ID