Error: This project configuration may not have been created with the harmony wizard or it has been incorrectly modified in some way Classic MPLABX ultra unhelpful error message. It turns out, for us, that this was caused by the MCC only having a MPLAB Harmony option for our device and requiring the project to have […]
All posts by
.Download & not supported issues with MCC
If you get any download errors with the MCC then you’re in trouble, it seems its implementation today (2023-09) is still really poor and if it doesn’t download something it needs it just breaks and has no ability to self-rectify. Well, in our painful experience anyway… The general fix seems to be to close MPLABX, […]
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: […]
I2C General
Config I2C Use MCC I2C Addresses You need to use addresses with the R/W bit removed, so Bits 7:1 are in bits 6:0 I2C Read I2C Write
.IO Pins General
Inputs Outputs
I2C (using MCC)
Example usage
Variables
XC8 compiler conversion to standard C variable definitions
LVGL
Platform independent open source graphics library https://lvgl.io/
ADC (using MCC)
ADC Settings FRC Does your uC have a FRC to use as the clock source? Nice and simple if it does. FVR Does your uC have a FVR to use as the reference voltage? Useful if you want an accurate reference, but not useful it you want your analog readings referenced to the uC power […]