Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:xc16 [2017/01/06 19:41] – [Resources] darrontools:xc16 [2017/01/18 19:05] (current) – [Microchip XC16 compiler] darron
Line 1: Line 1:
 ==== Microchip XC16 compiler ==== ==== Microchip XC16 compiler ====
  
 +This is a C compiler for the dsPIC and PIC24 24-bit address word PICMicros.
 +
 +Installation is comprised of two steps. The first step installs
 +the commercial compiler and the include files. The second step
 +is used to replace the compiler with the free edition. The
 +support files are needed in step 2 from step 1.
 === Commercial edition === === Commercial edition ===
  
Line 11: Line 17:
 </code> </code>
  
-== Fetch ==+== Fetch and install ==
 <code> <code>
-wget http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.25-full-install-linux-installer.run +wget "http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.30-full-install-linux-installer.run" 
-</code> +chmod +x *.run 
- +./xc16-v1.30-full-install-linux-installer.run
-== Install  == +
-<code> +
-chmod +x xc16-v1.25-full-install-linux-installer.run +
-./xc16-v1.25-full-install-linux-installer.run+
 </code> </code>
  
 == Include files == == Include files ==
  
-Version 1.25 is missing some important include files so we need to download them +Peripheral include files need to be fetched and installed separately.
-separately.+
  
-Method 1+== Fetch and install ==
 <code> <code>
-wget xc16-v1.24-full-install-linux-installer.run +wget "http://ww1.microchip.com/downloads/en//softwarelibrary/pic24 mcu dspic peripheral lib/peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run" 
-chmod +x xc16-v1.24-full-install-linux-installer.run +chmod +x *.run 
-./xc16-v1.24-full-install-linux-installer.run +./peripheral-libraries-for-pic24-and-dspic-v2.00-linux-installer.run
-cp -Rpa /opt/microchip/xc16/v1.24/support/peripheral_* /opt/microchip/xc16/v1.25/support/+
 </code> </code>
  
-Method 2 (TODO) +Use /opt/microchip/xc16/v1.30 as the install directory.
-<code> +
-wget http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en574961 +
-</code>+
  
 === Free edition === === Free edition ===
  
-The free edition utilises header files and libraries from the commercial edition so perform the installation steps given above. The free edition has no limitations and does not require a license for optimisations.+The free edition utilises header files and libraries from the commercial edition so perform the installation steps given above first. The free edition has no limitations and does not require a license for optimisations
 + 
 +The source code for the compiler needs a number of patches to build and operate. Patches were sourced from patches from the older c30 compiler and others created for XC16. The 
 +resultant build has proven to produce binary objects that work on the target devices.
  
 == Initialise == == Initialise ==
Line 52: Line 52:
 </code> </code>
  
-== Fetch == +The install process will apply a number of patches, build the compiler and tools and install everything in /opt/pic30-tools.
-<code> +
-wget http://ww1.microchip.com/downloads/en/DeviceDoc/v1.25.src.zip +
-</code>+
  
-== Install ==+== Fetch and install ==
 <code> <code>
 +wget "http://ww1.microchip.com/downloads/en/DeviceDoc/v1.30.src.zip"
 ./install ./install
 </code> </code>
 +
 +The install script expects the commercial compiler and includes files
 +to be installed so it may copy the support files to the build directory.
 +
 +The final output of this process is not elegant and can do with more
 +work but this is not a high priority.
  
 === Raspberry Pi === === Raspberry Pi ===
Line 71: Line 75:
 == Initialise == == Initialise ==
 <code> <code>
-mkdir -p /embedded/raspbian/opt/microchip/xc16/v1.25+mkdir -p /embedded/raspbian/opt/microchip/xc16/v1.30
-cd /embedded/raspbian/opt/microchip/xc16/v1.25+cd /embedded/raspbian/opt/microchip/xc16/v1.30
-cp -Rp /opt/microchip/xc16/v1.25/* .+cp -Rp /opt/microchip/xc16/v1.30/* .
 mkdir -p /embedded/raspbian/var/tmp/ mkdir -p /embedded/raspbian/var/tmp/
 cd /embedded/raspbian/var/tmp cd /embedded/raspbian/var/tmp
Line 82: Line 86:
 == Fetch == == Fetch ==
 <code> <code>
-wget http://ww1.microchip.com/downloads/en/DeviceDoc/v1.25.src.zip+wget "http://ww1.microchip.com/downloads/en/DeviceDoc/v1.30.src.zip"
 </code> </code>
  
Line 107: Line 111:
 === Resources === === Resources ===
  
-[[http://web.archive.org/web/20160206013352/http://www.microchip.com/pagehandler/en-us/devtools/dev-tools-parts.html|Microchip downloads archive (old site)]] +[[http://web.archive.org/web/20160206013352/http://www.microchip.com/pagehandler/en-us/devtools/dev-tools-parts.html|Microchip downloads archive (old site)]] \\
 [[http://www.microchip.com/development-tools/downloads-archive|Microchip downloads archive]] [[http://www.microchip.com/development-tools/downloads-archive|Microchip downloads archive]]
 +