Releases: is1200-example-projects/mcb32tools
Release v2.2
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
Release v2.1
Changes
- mcb32 now contains libc and libm
Installation
Linux
- Install the packages bzip2 and make from your distribution repository. For Debian/Ubuntu, run
sudo apt-get install bzip2 make
- 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
- 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
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 and /dev/ttySx on Windows, replace 'x' with the actual value on your system.
git clone git://github.com/is1200-example-projects/hello-leds.git
cd hello-leds
make
make install TTYDEV=/dev/tty_dev_identified_above
Release v2.0
Changes
- Updated all files for a Mac build
- Correctly set umask for installer script
Installation
Linux
- Install the packages bzip2 and make from your distribution repository. For Debian/Ubuntu, run
sudo apt-get install bzip2 make
- 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
- 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
Pre-release v1.9
Changes
- Renamed the toolchain to avoid using trademarks
- Includes new header to remove the need for external symbols file
This is a pre-release because of some minor cosmetic flaws on Mac OS X. The toolchain is however feature-complete with v2.0.
Installation
Linux
- Install the packages bzip2 and make from your distribution repository.
- 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
- Windows binaries yet to be built *
- 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
- Run the .run-file inside the MSYS2 environment
- 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
Release v1.1
Changes
- Fixed a bug in the link script preventing the use of the .data area
- Removed exception handler from crt0, allowing its use from user code
Installation
Linux
- Install the packages bzip2, make and libftdi1 from your distribution repository.
- 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/pic32-toolchain/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
- Run the .run-file inside the MSYS2 environment
- Enter the cross compiler by sourcing the environment
. /opt/pic32-toolchain/environment
Mac OS X
- Download the .dmg-file for mac
- Open the .dmg-file
- Drag pic32-toolchain to your Applications folder
- Open your applications folder and launch pic32-toolchain
Pre-release v0.9
The is a pre-release.
Known bug: data/bss area does not work properly, binaries with a data area make avrdude crash
The sample projects hello-leds and hello-adc should work fine.
Installation
Linux
- Install the packages bzip2 and make from your distribution repository.
- 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/pic32-toolchain/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
- Run the .run-file inside the MSYS2 environment
- Enter the cross compiler by sourcing the environment
. /opt/pic32-toolchain/environment
Mac OS X
- Download the .dmg-file for mac
- Open the .dmg-file
- Drag pic32-toolchain to your Applications folder
- Open your applications folder and launch pic32-toolchain