If you would like to turn off / suppress or disable certain XC8 Compiler warning or compiler error messages, it is very simple. Go here: and enter –msgdisable=xxx or –msgdisable=xxx,yyy you can also turn errors off –msgdisable=xxx:off,yyy:off,zzz
sprintf or printf do not output float variables correctly
Have you run into situation under the MPLAB IDE where you are trying to output variables, but even though you have the format correct, a float variable outputs with a .0 value? Example (from somewhere else in code) AIRTEMP=751 ==== float adjustedtemp= 0.0; adjustedtemp= (AIRTEMP + 5)/10; printf(“Air Temp: %5.2f \r\n”, adjustedtemp); the result looks…
XC8 compiler installer hangs on installation
If you are having a problem with the MICROCHIP XC8 installer hanging on installation under Windows 10 — (see screenshot below): Very easy solution… Change your screen resolution to 1080p, and TURN OFF all “screen scaling/screen zooming” settings Reboot your computer (trust me, just do this step) The installer should work fine now.…
PIC XC8 error warning: (1472) –CODEOFFSET option ignored: duplicate or conflicting option
If you receive the following error during an XC8 project build, here is how to fix it warning: (1472) –CODEOFFSET option ignored: duplicate or conflicting option the fix: under project properties, XC8 Linker, make sure there is either a) no value (blank) in the CODEOFFSET field b) some legitimate value in CODEOFFSET that…
PIC XC8 error warning: (1459) peripheral library support is missing for the 18XXXX
if you receive the following error during BUILD in XC8, here is the quick fix: warning: (1459) peripheral library support is missing for the 18F6722 the fix is simple: make sure this checkbox is UNCHECKED under the project properties, XC8 linker.