5.7.3 About Toolchain Paths

MPLAB X IDE searches for toolchains under default installation paths and the PATH environment variable. An example default path for MPLAB XC16 under a 64-bit Windows operating system is:

C:\Program Files\Microchip\xc16\vx.xx\bin

When you install a compiler, you have the choice to determine the location. You can either:

  • install at the default location

OR

  • install at a different location and add the location to the PATH

If you are installing at a location different from the default, you should add that location to the PATH.

If you do not choose to have the installer add a new location to the PATH, you can point MPLAB X IDE to the compiler location in Tools>Options, Embedded button, Build Tools tab.

Finally, you can manually add the new location to the PATH variable.

If the toolchain is known to MPLAB X IDE, but the path cannot be found, the path will appear in red text.