Changes
- Added missing peripheral registers to pic32mx.h
Installation
Linux
- Install the packages bzip2 and make from your distribution repository. For Debian/Ubuntu, run
sudo apt-get install bzip2 make libftdi-dev
- Download the .run file for linux
- Make the .run-file executable with chmod +x.
- Run the file as root or with sudo
- Enter the cross compiler by sourcing the environment
. /opt/mcb32tools/environment
Windows
- Install msys2 (http://msys2.github.io)
- Follow the guide to update your msys2 installation
- Install required packages
pacman -S make bzip2 tar
- Download the .run-file for windows. Make sure you download the correct version.
The x86_64 version is for 64 bit MSYS2 installation and the i686 version for a 32 bit MSYS2 installation. - Run the .run-file inside the MSYS2 environment (cd to containing directory, run with ./mcb32tools-*.run)
- Enter the cross compiler by sourcing the environment
. /opt/mcb32tools/environment
Mac OS X
- Download the .dmg-file for mac
- Open the .dmg-file
- Drag mcb32tools to your Applications folder
- Open your applications folder and launch mcb32tools
Note that the terminal might not be visible directly after launch. Sometimes you need to switch between the applications (using Cmd-Tab) to find the MCB32 terminal window. If you have the right shell, it should show [mcb32].
Testing your installation
Connect your Uno32 board to the computer. A serial device should show up in /dev.
This is normally
- /dev/ttyUSBx on Linux
- /dev/tty.usbserial-xxxxxxxx on Mac (note that you cannot use the the MCB32 shell to find the USB device ID. Use another standard terminal on your Mac to find the USB device ID and then copy the string to the MCB32 terminal window)
- and /dev/ttySx on Windows
Replace 'x' with the actual value on your system.
On Linux, your user must be part of the dialout
group to be able to use serial ports (sudo usermod -a -G dialout $USER
).
git clone git://github.com/is1200-example-projects/hello-leds.git
cd hello-leds
make
make install TTYDEV=/dev/tty_dev_identified_above