-
Notifications
You must be signed in to change notification settings - Fork 4
How to setup build environment on Mac OS X
-
Install the latest FTDI serial driver: http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_17.dmg
-
Install Arduino sources: https://arduino.googlecode.com/files/arduino-1.0.4-src.tar.gz
-
Install CrossPack for AVR Development (contains avrdude command and AVR cross-compiler): http://www.obdev.at/products/crosspack/index.html
-
Edit your environment $HOME/.bashrc to add the following lines:
export ARDUINODIR=$HOME/arduino-1.0.4/ export BOARD=fio
-
Restart a new terminal window
-
Download latest software: https://github.com/bidouilles/bGeigieNano/zipball/master
-
Build and upload the software:
cp -r libraries $HOME/arduino-1.0.4/ make make upload
- Install the latest FTDI serial driver: http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_17.dmg
- Install CrossPack for AVR Development (contains avrdude command and AVR cross-compiler): http://www.obdev.at/products/crosspack/index.html
From a terminal type the following commands,
-
to find which usb device the arduino is connected on (you should get something like /dev/tty.usbserial-A700eYeV)
ls /dev/tty.usbserial*
-
to download the lastest firmware for Arduino Fio
wget https://raw.github.com/bidouilles/bGeigieNano/master/bGeigieNano.hex
-
to upload the firmware to the Arduino Fio
/usr/local/bin/avrdude -DV -p atmega328p -P /dev/tty.usbserial-A700eYeV -c arduino -b 57600 -U flash:w:bGeigieNano.hex:i