Why am I encountering errors in my code pointing to missing Peripheral Library routines?

Please see the relevant compiler category below for information about the errors, referring to missing peripheral libraries.

MPLAB® XC8 Compiler

The PIC18 peripheral libraries, associated header files, and documentation are no longer shipped with the newer compiler versions. Code using legacy peripheral libraries will not build with the latest compiler version; there will be errors referring to missing peripheral library routines.

If you need to use the peripheral libraries that were formerly shipped with the compiler, these can be separately downloaded from the compiler page; and will need to be installed on top of the compiler installation.

Peripheral libraries are under the Downloads tab (Legacy Peripheral Libraries) on the MPLAB® XC Compilers page.

For new code development, we recommended using the Microchip Code Configurator (MCC). MCC can be used to generate routines that perform similar tasks to those supplied by the peripheral library. For a list of supported devices, refer to the release notes on the MCC page, under the Documentation tab. MCC is available as an MPLAB X IDE plugin and can be installed from the IDE under the Tools > Plugins menu.

MPLAB® XC16 Compiler

The peripheral libraries are no longer shipped with the newer compiler versions. Code using legacy peripheral libraries will not build with the latest compiler version; there will be errors referring to missing peripheral library routines.

If you need to use the peripheral libraries that were formerly shipped with the compiler, these can be separately downloaded from the compiler page; and will need to be installed on top of the compiler installation.

Peripheral libraries are under the Downloads tab (Legacy Peripheral Libraries) on the MPLAB® XC Compilers page.

For new code development, we recommended using the MCC (Microchip Code Configurator). MCC can be used to generate routines that perform similar tasks to those supplied by the peripheral library. For a list of supported devices, refer to the release notes on the MCC page, under the Documentation tab. MCC is available as an MPLAB X IDE plugin and can be installed from the IDE under the Tools > Plugins menu.

MPLAB® XC32 Compiler

The MPLAB XC32 peripheral libraries (including the header file plib.h) provided with earlier versions of XC32 compiler are no longer shipped with the compiler. Code using legacy peripheral libraries will not build with the latest compiler version; there will be errors referring to missing peripheral library routines.

If you need to use the peripheral libraries that were formerly shipped with the compiler, these can be separately downloaded from the compiler page and will need to be installed on top of the compiler installation.

Peripheral libraries are under the Downloads tab (Legacy Peripheral Libraries) on the MPLAB® XC Compilers page.

Legacy peripheral libraries are being replaced with the MPLAB Harmony integrated framework. For more details refer to the MPLAB Harmony framework page.

© 2020 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.