XC8 V1.# Compiler

Setting a new project (After following the steps here) Project Properties > XC8 global options > XC8 Compiler > Select ‘Optimizations’ Speed (or disable optimizations?) & Debug checkboxes Set as needed (off and on is good for debugging) Address qualifiers – CAN BE VERY IMPORTANT!!!! If you are using anything that requires locating in specific […]

Read More

.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 Classic” is the old typical option to go with, but Harmony maybe […]

Read More

XC8 V2.# Compiler

https://microchipdeveloper.com/xc8:moving-to-xc8-2-0 V2.00 of the XC8 compiler is quite different to V1.## versions, various things are broken / change: If you don’t want to implement this C99 changes This guide is based on moving up to C99, but you can avoid having to do some of the changes if you want to use the older C90 […]

Read More

Peripheral Libraries

Newer versions of XC8 want you to use the “MPLAB Code Configurator” when using any peripheral. Using the old peripheral libraries If you don’t want to use the MPLAB Code Configurator you can still get the old peripheral libraries by downloading and installing “PIC18F Legacy Peripheral Libraries v#.#” from the microchip compilers page. Install it […]

Read More

.New XC8 Project

New XC8 Projects Which XC8 Compiler Version? XC8 V2.# and above You need to change to using the Microchip Code Configurator. Old peripheral libraries can still be installed in theory, although we ran into compile issues when we tried to use.  Better to make the move to the new setup and code usage examples provided […]

Read More