This is an old revision of the document!


Microchip XC32 compiler

Linux AMD64

Legacy MPIDE compiler
cd /opt/
wget https://chipkit.s3.amazonaws.com/0150release/mpide-0150-linux64-20150820.tgz
tar zxvf mpide-0150-linux64-20150820.tgz
ln -sf mpide-0150-linux64-20150820/hardware/pic32/compiler/pic32-tools
Core compiler with legacy libraries

Core compiler

cd /opt/
wget "https://chipkit.s3.amazonaws.com/chipkit-core/builds/linux64/chipkit-core-linux64.16778044.master-1.3.1-1-g9ebc183.zip"
unzip chipkit-core-linux64.16778044.master-1.3.1-1-g9ebc183.zip
ln -sf chipkit-core/pic32/compiler/pic32-tools

Legacy libraries

wget http://ww1.microchip.com/downloads/en/softwarelibrary/pic32%20peripheral%20library/pic32%20legacy%20peripheral%20libraries%20linux%20(2).tar
tar xvf pic32\ legacy\ peripheral\ libraries\ linux\ \(2\).tar
./PIC32\ Legacy\ Peripheral\ Libraries.run

When installing the libraries above use the following install directory.

/opt/pic32-tools

Finally, disable the legacy warnings from the legacy header files.

find /opt/pic32-tools/pic32mx/include/lega-c -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' {} \;

RPi

Legacy MPIDE compiler
cd /opt/
wget https://chipkit.s3.amazonaws.com/0150release/mpide-0150-raspberrypi-20150820.tgz
tar zxvf mpide-0150-raspberrypi-20150820.tgz
ln -sf mpide-0150-raspberrypi-20150820/hardware/pic32/compiler/pic32-tools
Core compiler with legacy libraries

Core compiler

cd /opt/
wget https://chipkit.s3.amazonaws.com/chipkit-core/builds/arm/chipkit-core-arm.16778044.master-1.3.1-1-g9ebc183.zip
unzip chipkit-core/builds/arm/chipkit-core-arm.16778044.master-1.3.1-1-g9ebc183.zip
ln -sf chipkit-core/pic32/compiler/pic32-tools

Legacy libraries

Perform the steps above for Linux AMD64 and afterwards copy plib.h and the lega-c and peripheral directories to the Pi.

For example, to archive and copy:

cd /opt/pic32-tools/pic32mx/include
tar cvf lega-c.tar lega-c
tar cvf peripheral.tar peripheral
scp plib.h *.tar pi@pi:

To extract on the pi:

cd /opt/pic32-tools/pic32mx/include
mv ~/plib.h .
tar xvf ~/lega-c.tar
tar xvf ~/peripheral.tar

BPi

As per RPi above, with the following step.

cd /lib
ln -sf arm-linux-gnueabihf/ld-2.19.so ld-linux.so.3

Cygwin

Legacy compiler

Download and extract mpide-0023-windows-20140821.zip to c:\mpide-0023-windows-20140821

Run Cygwin terminal

mkdir -p /opt
ln -sf /cygdrive/c/mpide-0023-windows-20140821/hardware/pic32/compiler/pic32-tools /opt/pic32-tools

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies