Open MCC to get up the Harmony configurator Select System and then in the main MCC ProjectGraph view (its default window), from the plugins dropdown select “Clock Configuration”. It seems to be necessary to use this tool and not the config settings directly tp get MCC to correctly update all the calculated times (which it […]
Category: .XC32 General
XC32 Docs etc
XC32 MPLAB Harmony PIC32 Family Reference Manual
XC32 files, definitions, etc
Predefined C variables that represent the peripheral registers and bits In your sepecific device header file, located in: C:\Program Files\Microchip\xc32\v#.##\pic32mx\include\proc\ Config setting names e.g.#pragma config FMIIEN = In MPLABX: Menu > Window > PIC Memory Views > Configuration Bits, then use “Generate Source Code to Output” button.
.New XC32 Project
Use MCC Get over it, you have to with V4.# and above XC32, all the old plib.h and config etc functions are completely gone. If you don’t want it you’ll have to use V2.# of the XC32 compiler (we skipped V3.#, not sure on that one). Create MPLAB X Project Run MPLAB X IDE Menu […]
Migrating to latest compiler version
Moving from V2.# to V4.# of XC32 We found we needed the following changes moving from V2.# to V4.# of the XC32 compiler: Plib is no longer maintained or distributed with current versions of compiler.Microchip expects you to use Harmony to configure and generate code for the purpose. Remove: #include <piclib.h>Replace with: #include <xc.h> Remove: […]
.Adding MCC To New Project
Adding to your project Create your MPLABX project as normal. Press the blue ‘MCC’ button on the toolbar to launch the code configurator. MCC Melody / MCC Classic / MPLAB Harmony choice (Unavailable options for your chosen device will be greyed out) “MCC Melody” is the newest that you should use if it is available […]