Arm Keil MDK v6 Essential and Professional editions are now available to buy as monthly or annual subscriptions from our Developer Tools store. Visit the store to get access to the tools suite today!

  1. Packs
  2. PIC32CM-GC00_DFP

Overview

The Microchip PIC32CM-GC00 Series Device Family Pack (DFP) is a CMSIS-Pack that:

Related packs

    - pack: ARM::CMSIS

Devices

PIC32CM5112GC00048

The PIC32CM GC Family of Microcontrollers (MCUs) is an ARM® Cortex®-M23 family with 512KB Flash and 128KB of SRAM all with ECC. The PIC32CM GC is ISO 26262 Compliant and includes dual CAN-FD, SERCOMs (USART, SPI, I2C, LIN, etc.) and full speed USB. Analog functionality includes a 12-Bit ADC, Peripheral Touch Controller, and Analog Comparators. Supported by MPLAB® X IDE, and MPLAB® Harmony.

Documentation:

PIC32CM5112GC00064

The PIC32CM5112GC is a high-performance, safety-certified microcontroller designed for demanding industrial applications. Built on the Arm® Cortex®-M23 core, it delivers robust processing power at 72 MHz and integrates 512 KB of Flash and 128 KB of SRAM. This MCU supports advanced touch technology with a combined PTC and ADC, enabling superior noise immunity and up to 324 mutual capacitance channels using Driven Shield Technology. It features industrial-grade reliability with dual CAN-FD and USB full-speed connectivity, making it ideal for sectors like energy, building automation, and safety-critical systems.

Documentation:

PIC32CM5112GC00100

The PIC32CM GC Family of Microcontrollers (MCUs) is an ARM® Cortex®-M23 family with 512KB Flash and 128KB of SRAM all with ECC. The PIC32CM GC is ISO 26262 Compliant and includes dual CAN-FD, SERCOMs (USART, SPI, I2C, LIN, etc.) and full speed USB. Analog functionality includes a 12-Bit ADC, Peripheral Touch Controller, and Analog Comparators. Supported by MPLAB® X IDE and MPLAB® Harmony.

Documentation:

MISRA Compliance Deviations List

MISRA-C:2023

Deviation ID: MFWCG-40

  • Rule 5.5: Identifiers shall be distinct from macro names.
  • Use case: Identifiers corresponding to register names.

Example:

```c typedef union { struct { uint32_t GPIO:29; uint32_t :3; } vec; uint32_t reg; } ECIA_SRC8_Type;

#define GPIO (0x40081000) ```

  • Reason: Access to hardware.

The macros expand into the same identifiers, which allow users to detect for the presence of specific registers during preprocessing.

  • Scope: Device headers for the DEC15xx and MEC15xx family (<device-name>.h).

Deviation ID: MFWCG-42

  • Rule 20.9: All identifiers used in the controlling expression of #if or #elif preprocessing directives shall be #define'd before evaluation.
  • Use case: Use of compiler builtin macros.

Example:

c #ifdef (__ARM_FP == 14) || (__ARM_FP == 4) fpu_enable(); #endif

  • Reason: Access to hardware.

Headers may rely on builtin macros from the compiler and are written under the assumption that if the macro is not defined, its value is zero.

  • Scope: All device headers (<device-name>.h).

Deviation ID: MFWCG-43

  • Rule 21.1: #define and #undef shall not be used on a reserved identifier or reserved macro name.
  • Use case: Reserved names, beginning with _ followed by a capital letter or __ followed by a lower-case are within the compiler's namespace.

Example:

c #define __IO volatile

  • Reason: Access to hardware; Code Quality (Usability: Accessibility).

Within these headers originate many reserved names that are within the compiler's namespace.

  • Scope: All device headers (<device-name>.h).

Deviation ID: MFWCG-44

  • Rule 21.2: A reserved identifier or reserved macro name shall not be declared.
  • Use case: Reserved names, beginning with _ followed by a capital letter or __ followed by a lower-case are within the compiler's namespace.

Example:

c extern const VECTOR_TABLE_Type __VECTOR_TABLE;

  • Reason: Access to hardware; Code Quality (Usability: Accessibility).

Within these headers originate many reserved names that are within the compiler's namespace.

  • Scope: All device headers (<device-name>.h).

MISRA-C:2025

Deviation ID: MFWCG-44

  • Rule 5.10: A reserved identifier or reserved macro name shall not be declared.
  • Use case: Reserved names, beginning with _ followed by a capital letter or __ followed by a lower-case are within the compiler's namespace.

Example:

c extern const VECTOR_TABLE_Type __VECTOR_TABLE;

  • Reason: Access to hardware; Code Quality (Usability: Accessibility).

Within these headers originate many reserved names that are within the compiler's namespace.

  • Scope: All device headers (<device-name>.h).

Deviation ID: None

  • Rule 11.4: A conversion shall not be performed between a pointer to object and an arithmetic type.
  • Use case: Setting special registers from linker-generated symbols.

Example:

c pSrc = (uint32_t *) & __svectors; SCB->VTOR = ((uint32_t) pSrc & SCB_VTOR_TBLOFF_Msk);

  • Reason: Access to hardware.

Some hardware registers do not have a pointer type but hold an address.

  • Scope: Device startup code (startup_<name>.c)

Deviation ID: MFWCG-42

  • Rule 20.9: All identifiers used in the controlling expression of #if or #elif preprocessing directives shall be #define'd before evaluation.
  • Use case: Use of compiler builtin macros.

Example:

c #ifdef (__ARM_FP == 14) || (__ARM_FP == 4) fpu_enable(); #endif

  • Reason: Access to hardware.

Headers may rely on builtin macros from the compiler and are written under the assumption that if the macro is not defined, its value is zero.

  • Scope: All device headers (<device-name>.h).

Deviation ID: MFWCG-43

  • Rule 20.15: #define and #undef shall not be used on a reserved identifier or reserved macro name.
  • Use case: Reserved names, beginning with _ followed by a capital letter or __ followed by a lower-case are within the compiler's namespace.

Example:

c #define __IO volatile

  • Reason: Access to hardware; Code Quality (Usability: Accessibility).

Within these headers originate many reserved names that are within the compiler's namespace.

  • Scope: All device headers (<device-name>.h).

Support

For support questions, contact Microchip Support through https://www.microchip.com/en-us/support.