Monday, 8 June 2015

better way to install Sanguino in Arduino 1.6.4

After working out how to do it manualy in the previous post, I found a much more system friendly way to install it.

Download the IDE

Start up Arduino IDE

Open up the menu   File|Preferences

At the bottom is a field  Additional Boards manager URLs:
Enter ""

Click OK

Open up the menu Tools|Board:|Boards manager...

This will open the manager. Scroll down till you see Sanguino
Click more info, this will reveal an install button.

Hit install.

Close the Board manager.

Your done!

Of interest this doesn't use any of the legacy core code from the Sanguino install files.



  1. Thanks so much for this.
    It's taken me that much further, only now I get the dreaded "avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x08" any further tips for this?

  2. Same here, have the error stk500 and no idea how to solve it

  3. Sadly no one ever documents what boot loader they used if any. The boot loader expects a certain baud rate and protocol. You need to try a few options. Find and edit you boards.txt fie that defines the sanguino. In there you find upload.protocol and upload.speed. for protocol the most common are arduino and stk500, upload speeds I have seen are 38400 and 57600. So try all of those combinations. These days I just us a avrisp and upload a known new bootloader so there is no guessing.

    1. On windows 7 Youll find the boards.txt file that defines the sanguino in (you need to turn on hidden folders) users>you>appdata>roaming>arduino15>packages>Sanguino>hardware>avr>1.0.0>boards.txt. The stk500_getsync() error was fixed after editing the upload.speed from 152000 to 57600 for the chip i was using (1284p16mhz). Thank you Dust you da man!

    2. THIS ^^^ worked for me. Thanks "Unknown!" and thanks Dust for making this so simple.

    3. Where do you find this file in Windows 10? PLease help!!!

    4. avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
      Copyright (c) 2000-2005 Brian Dean,
      Copyright (c) 2007-2009 Joerg Wunsch

      System wide configuration file is "C:\Users\nschn\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.0.1-arduino5/etc/avrdude.conf"

      Using Port : COM5
      Using Programmer : arduino
      Overriding Baud Rate : 115200
      avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.

      avrdude done. Thank you.

    5. Thanks for this awesome tip. I had the same issue with stk500, editing boards.txt fixed it. For me on Windows 7 boards.txt was in a slightly different place:

      Edit I made was to this line setting it to 57600:

      (This was using Arduino IDE 1.8.5 uploading Marlin to a Melzi board)

    6. Feb 5 2019 Ive learned that choosing the WRONG Melzi board led to the Arduino IDE software auto-correcting it and Uploading the software when it failed to do that if I chose the correct oard, lol! What a brilliant surprise. No more AVR STK500 errors either and I did not have to drop the Upload speed to 57600, it went ahead at 115200. Also did NOT have to detach the LCD OR set the power to USB which everyone seems to keep saying are necessary. Neither are. Fixing the LCD was achieved by downoading the Repetier COnfiguration.h file from their website after setting the Zonestar LCd with 5 buttons option then transferring the TYPE 24 value to my Configuration.h file Tadaa! That worked too. Ive been trying to upgrade this damned machine for 1yr but at least I've picked up enough correct details from decent people who post their answers rather than just gloat and say "I fixed that by tweaking that value" (UNHelpful) so I now have motor control via the controller and I know I can revert to 0.91 & use Repetier 95 with Full control & Homing but am determined to upgrade if it's possible to 2.1.3 I think my COM Port Driver is still wrong. Damn.

    7. Using Arduino 1.8.9 and Sanguino installed + Sanguino/ATmega1284 16Mhz selected.

      Tried different baudrates, 38400, 57600, 115200 but no difference. In the serial terminal I see that 250000 works.

      Still not able to transfer project to Sanguino board, I do see an error when I do "Tools -> Get Board Info"

      It reports: BN Unknonwn board, VID: 0403, PID: 6001

      When I look in the avrdude.conf file I don't find the VID/PID combination.

      So seems to be the com port driver that is the problem somehow, but Repetier host does work !!!

    8. VID: 0403, PID: 6001 is the standard ftdi usb/serial chip you probably need to install the drivers

    9. I removed the port+drivers and then reinstalled with above... no solution

      With Arduino 1.0.1 I was able to upload the older Marlin FW, but for the latest 1.1.9 I had to install Arduino 1.8.9


  4. I had the stk500 error but after I downloaded the new arduino bootloader ( found in the package) everything started to work again.

  5. Thanks, after 1 hr of messing around with AVR, this worked! Good man!

  6. Thanks for this. Maybe my sanguino will live again. I just have to figure out how to get a bootloader back onto it!

  7. Cool. Before I was forced to use the 1.0.1 version. After following your tip, the Sanguino board appeared and after selecting it, I had the option of selecting the correct processor and Bob's your uncle. Thanks for this.

  8. Hi,
    I followed your instructions and I was able to install sanguino in both Raspberry pi (arduino for ARM) and Linux LXLE (Ubuntu based).
    With it, I successfully burned the bootloader to an at1284p (with an arduino as ISP) and then I was able to confirm success by uploading an example sketch (examples/communication/ascii table).
    It works fine: Uploads correctly via direct USB connection and then I'm able to see the ascii table in the serial monitor.
    But when I try to upload a bigger sketch, like Marlin with extras such as SD, LCD, etc. It gets stuck somewhere between 18% and 40%.

    Any idea of what can I be doing wrong?


  9. Beyond awesome! Thank you so much dude, you rock!

  10. Big Thanks ! It works also for me with the IDE 1.6.12 (Latest today). I lost 8 hours before I found your message on this forum to save my Sanguinololu board ! Is there a need to reflash the bootloader ? Is the one integrated in the latest 1.0.1 addon for Sanguinololu bringing more stability ?

  11. Arduino 1.8.2, Ubuntu.

    Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu

    1. same, the json file to add Sanguino to the IDE is not compatible with 1.8x it appears....

    2. You need to also select a compatible processor. Has to be 644p or 1284p not the default 644

  12. wow! thats a great post!