This file contains the following sections:
- Summary
- How to execute
- How to create new target
- Troubleshooting
This folder contains a makefile and *.mk files for target specification. The makefile compiles the X2C Scope source files for the target MCUs.
- Compilers: XC16 and/or XC32 and/or XC-DSC http://microchip.com/xc
- GNU Make: MPLAB X IDE contains it: http://microchip.com/mplabx
- Modify system path environment to make.exe be available in command line: C:\Program Files (x86)\Microchip\MPLABX\v5.20\gnuBins\GnuWin32\bin
- Modify makefile compiler paths to your XC compiler installation paths:
Open cmd in the root folder and execute "make" command. The main makefile will call all *.mk file in the folder and compile all targets.
Execute "make clean" to delete all obj and lib files.
If new target or custom configuration(Scope_size) required just duplicate one of the *.mk file and modify the following variables to the needs:
- TARGET_FILENAME - The output filename. (Will be located in the dist folder after compilation.)
- OBJDIR - Folder to store the temporary object files. Must start with underscore(_) and must be different than other .mk files!
- SET_PROCESSOR - Use XC Readme.html for the list of supported Devices. (xc32\v2.xx\docs)
- DEFINE_X2C_MCU_FAMILY - Check the X2C Scope header files for details. Keep as it is.
- OPTIMISATION - Compiler optimisation level
Then just execute the make command in the folder and makefile will call automatically the newly created .mk file.
- 'make' is not recognized as an internal or external command, operable program or batch file.
- Set Path environment as described in the Prerequisites section. (See at Prerequisites)
- The system cannot find the file specified.
- Edit makefile and set the correct compiler paths according to your system. (See at Prerequisites)

