Setting up Sanguinololu on OS X for Arduino 1.8.6

Preamble

See the preamble of Trouble compiling Repetier

Following Setting up a Sanguinololu on a Mac, the instructions aren’t quite right of a recent Arduino IDE. They may have worked for 1.0, but they don’t anymore.

See also

  • Trouble compiling Repetier (this was the original blog, until I discovered that the Z-probe was not causing the issue)
  • Selecting the right motherboard in Repetier (this is a bit of a red herring, as I was trying to determine how to get the pin definition for DIOORIG_FAN2_PIN_WPORT. However, it does list the motherboards supported and the necessary settings for the Arduino IDE)
  • DIOORIG_FAN2_PIN_WPORT error (this article get to the crux of the matter and how to resolve the compilation errors)

Links

The real location

Following  Setting up a Sanguinololu on a Mac, from http://code.google.com/p/sanguino/downloads/list download the latest release:

Sanguino-0101r1.zip Added support for Arduino 1.0.1  Featured Sep 4, 2012 215.16KB

Screenshot:

Latest Sanguino files
Latest Sanguino files

and unzip it. and inserting the sanguino folder into the Package Contents of the Arduino IDE application

sanguino folder in the Package Contents
sanguino folder in the Package Contents

caused errors, when opening and closing Boards Manager:

Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/bootloaders. Is it pre-1.5?
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/cores. Is it pre-1.5?
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/firmwares. Is it pre-1.5?
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/variants. Is it pre-1.5?
WARNING: Error loading hardware folder /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino
 No valid hardware definitions found in folder sanguino.
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/bootloaders. Is it pre-1.5?
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/cores. Is it pre-1.5?
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/firmwares. Is it pre-1.5?
Could not find boards.txt in /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino/variants. Is it pre-1.5?
WARNING: Error loading hardware folder /Volumes/Home/Users/user/Local_Apps/Arduino/Arduino 1.8.2.app/Contents/Java/hardware/sanguino
 No valid hardware definitions found in folder sanguino.

Moving it to the Hardware folder in the Arduino Home directory caused the same errors,when opening and closing Boards Manager but the Sanguino board was still not available in the Boards menu:

 

So, moving boards.txt to a new avr sub directory worked (for a while)

Location of boards.txt
Location of boards.txt

You can now select the board

Sanguino in the Board menu
Sanguino in the Board menu

Then upon compilation you get:

Arduino: 1.8.2 (Mac OS X), Board: "Sanguino W/ ATmega644P"

Warning: Board sanguino:avr:atmega644 doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA644
Warning: Board sanguino:avr:atmega1284 doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA1284
Warning: Board sanguino:avr:atmega12848m doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA12848M
Build options changed, rebuilding all
recipe.preproc.macros pattern is missing

Error compiling for board Sanguino W/ ATmega644P.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s