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 "https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json"

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.


 

22 comments:

  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?

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

    ReplyDelete
  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.

    ReplyDelete
    Replies
    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!

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

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

      Delete
    4. avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
      Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
      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.

      Delete
    5. avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
      Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
      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: stk500_recv(): programmer is not responding
      avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xfb
      avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe1
      avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x71
      avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x58
      avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf1
      avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3a
      avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x26
      avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x98
      avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x58
      avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc3

      avrdude done. Thank you.

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

    ReplyDelete
    Replies
    1. Forgive me for asking, but how exactly did you do this?

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

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

    ReplyDelete
  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.

    ReplyDelete
  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?

    Thanks!

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

    ReplyDelete
  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 ?

    ReplyDelete
  11. Arduino 1.8.2, Ubuntu.

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

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

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

      Delete
  12. wow! thats a great post!
    thanks

    ReplyDelete