There are, of course, a lot of people simply using avr-gcc and avrdude with makefiles and generic text editors, but personally, the Arduino IDE suits me just fine for most of my projects.
After a few months of replacing bits and pieces of the toolchain, I’ve arrived at a more principled approach, based on CrossPack, a well maintained distribution of up to date versions of the AVR tools for OS X, including patches for the latest processors. After installing CrossPack from the web site, the following script will replace the toolchain in the Arduino IDE with a link to the CrossPack toolchain:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
# | |
# Usage: Arduino-Crosspack /Applications/Arduino.app | |
# | |
AVR="$1/Contents/Resources/Java/hardware/tools/avr" | |
sudo rm -rf "$AVR" | |
sudo ln -s /usr/local/CrossPack-AVR "$AVR" | |
sudo codesign -fs - "$1" |
No comments:
Post a Comment