Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tools:xc32 [2016/12/18 22:32]
darron [RPi]
tools:xc32 [2020/07/18 23:00] (current)
darron [Raspberry Pi Raspbian]
Line 1: Line 1:
 ==== Microchip XC32 compiler ==== ==== Microchip XC32 compiler ====
 +
 +The XC32 compiler is available in a free edition as either the legacy MPIDE compiler
 +or the core compiler.
 +
 +The core compiler is a requirement for newer chip families such as the PIC32MM but
 +doesn't include the legacy microchip libraries to build older projects.
 +
 +The legacy libraries are available for download but only as a binary installation.
 +Newer device families such as the PIC32MM have no legacy backward compatibility.
 +
  
 === Linux AMD64 === === Linux AMD64 ===
 +
 +== 32-bit compatibility ==
 +apt-get install libc6-i386
  
 == Legacy MPIDE compiler == == Legacy MPIDE compiler ==
Line 16: Line 29:
 <code> <code>
 cd /opt/ cd /opt/
-wget "https://chipkit.s3.amazonaws.com/chipkit-core/builds/linux64/chipkit-core-linux64.16778044.master-1.3.1-1-g9ebc183.zip" +wget "https://chipkit.s3.amazonaws.com/chipkit-core/builds/linux64/chipkit-core-linux64.16778055.Branch_0299cad4-v2.0.6-2-g0299cad.zip" 
-unzip chipkit-core-linux64.16778044.master-1.3.1-1-g9ebc183.zip+unzip chipkit-core-linux64.16778055.Branch_0299cad4-v2.0.6-2-g0299cad.zip
 ln -sf chipkit-core/pic32/compiler/pic32-tools ln -sf chipkit-core/pic32/compiler/pic32-tools
 </code> </code>
Line 38: Line 51:
 find /opt/pic32-tools/pic32mx/include/peripheral -name "*.h" -exec sed -i 's/#warning/\/\/#warning/g' {} \; find /opt/pic32-tools/pic32mx/include/peripheral -name "*.h" -exec sed -i 's/#warning/\/\/#warning/g' {} \;
 </code> </code>
-=== RPi ===+ 
 +=== Raspberry Pi Raspbian ===
  
 == Legacy MPIDE compiler == == Legacy MPIDE compiler ==
Line 54: Line 68:
 <code> <code>
 cd /opt/ cd /opt/
-wget https://chipkit.s3.amazonaws.com/chipkit-core/builds/arm/chipkit-core-arm.16778044.master-1.3.1-1-g9ebc183.zip +wget https://chipkit.s3.amazonaws.com/chipkit-core/builds/arm/chipkit-core-arm.16778055.Branch_0299cad4-v2.0.6-2-g0299cad.zip 
-unzip chipkit-core/builds/arm/chipkit-core-arm.16778044.master-1.3.1-1-g9ebc183.zip+unzip chipkit-core/builds/arm/chipkit-core-arm.16778055.Branch_0299cad4-v2.0.6-2-g0299cad.zip
 ln -sf chipkit-core/pic32/compiler/pic32-tools ln -sf chipkit-core/pic32/compiler/pic32-tools
 </code> </code>
Line 61: Line 75:
 __Legacy libraries__ __Legacy libraries__
  
-Perform the steps above for Linux AMD64 and afterwards copy the lega-c and peripheral +Perform the steps above for Linux AMD64 and afterwards copy plib.h and the lega-c and peripheral library and include files to the Pi.
-directories to the Pi. +
- +
-The directory locations are: +
-<code> +
-/opt/pic32-tools/pic32mx/include/lega-c +
-/opt/pic32-tools/pic32mx/include/peripheral +
-</code>+
  
 For example, to archive and copy: For example, to archive and copy:
Line 75: Line 82:
 tar cvf lega-c.tar lega-c tar cvf lega-c.tar lega-c
 tar cvf peripheral.tar peripheral tar cvf peripheral.tar peripheral
-scp *.tar pi@pi:+scp plib.h *.tar pi@pi: 
 +cd /opt/pic32-tools/pic32mx/lib 
 +find -name "libmchp_peripheral*" | tar zcvf lib.tgz -T - 
 +scp lib.tgz pi@pi:
 </code> </code>
-=== BPi ===+ 
 +To extract on the pi: 
 +<code> 
 +cd /opt/pic32-tools/pic32mx/include 
 +mv ~/plib.h . 
 +tar xvf ~/lega-c.tar 
 +tar xvf ~/peripheral.tar 
 +cd /opt/pic32-tools/pic32mx/lib 
 +tar zxvf ~/lib.tgz 
 +</code> 
 +=== Debian derived (Armbian, Bananian, Devuan) === 
 As per RPi above, with the following step. As per RPi above, with the following step.
 +
 <code> <code>
 cd /lib cd /lib
 ln -sf arm-linux-gnueabihf/ld-2.19.so ld-linux.so.3 ln -sf arm-linux-gnueabihf/ld-2.19.so ld-linux.so.3
 </code> </code>
 +
  
 === Cygwin === === Cygwin ===
Line 98: Line 121:
  
 === Resources === === Resources ===
-[[https://chipkit.s3.amazonaws.com/index.html?sort=lastmod&sortdir=desc|ChipKIT bucket]] + 
-\\ +[[https://chipkit.net/wiki/index.php?title=ChipKIT_core|ChipKIT core download links]] 
-[[http://chipkit.net/started/install-chipkit-software/|ChipKIT download]]+ 
 +[[https://www.microchip.com/SWLibraryWeb/product.aspx?product=PIC32%20Peripheral%20Library|Legacy Libraries]]