Skip to content

How to setup build environment on Mac OS X

bidouilles edited this page Mar 24, 2013 · 3 revisions

How to setup build environment on Mac OS X

Build yourself

Setup for Mac OS X

  1. Install the latest FTDI serial driver: http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_17.dmg

  2. Install Arduino sources: https://arduino.googlecode.com/files/arduino-1.0.4-src.tar.gz

  3. Install CrossPack for AVR Development (contains avrdude command and AVR cross-compiler): http://www.obdev.at/products/crosspack/index.html

  4. Edit your environment $HOME/.bashrc to add the following lines:

      export ARDUINODIR=$HOME/arduino-1.0.4/
      export BOARD=fio
    
  5. Restart a new terminal window

Build and upload the bGeigieNano software

  1. Download latest software: https://github.com/bidouilles/bGeigieNano/zipball/master

  2. Build and upload the software:

      cp -r libraries $HOME/arduino-1.0.4/
      make
      make upload
    

Use prebuild image

Setup for Mac OS X

  1. Install the latest FTDI serial driver: http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_17.dmg
  2. Install CrossPack for AVR Development (contains avrdude command and AVR cross-compiler): http://www.obdev.at/products/crosspack/index.html

Upload the bGeigieNano software

From a terminal type the following commands,

  1. to find which usb device the arduino is connected on (you should get something like /dev/tty.usbserial-A700eYeV)

      ls /dev/tty.usbserial*
    
  2. to download the lastest firmware for Arduino Fio

      wget https://raw.github.com/bidouilles/bGeigieNano/master/bGeigieNano.hex
    
  3. 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