Giter Site home page Giter Site logo

Comments (8)

abend0c1 avatar abend0c1 commented on August 16, 2024

forgot to mention, I'm using a Sanguinololu v1.3a board, so the boards.txt was from boards/Sanguino 1.0+

from repetier-firmware.

repetier avatar repetier commented on August 16, 2024

I tried to verify the problem but couldn't get it. I saw that the Arduino.h was wrong in that folder. The correct content should be

#include "WProgram.h"
#define COMPAT_PRE1

I saw that there is a new Sanguino version for Arduino 023 with different boards.txt from last release. Tried that too. I even didn't find a rule for variant in the code.
Which os and sanguino firmware version are you using?

from repetier-firmware.

abend0c1 avatar abend0c1 commented on August 16, 2024

I'm using Ubuntu 11.10 x64, the latest Arduino 1.0 IDE, and a Sanguinolulu 1.3a board (just finished putting it together today) from xyzprinters which apparently comes with a boot loader pre-installed. I've managed to compile your firmware, with the above line added to boards.txt, and have uploaded it to the board. This is my first foray into the Arduino world...I'm more familiar with PICs...so I'm probably doing something wrong.

from repetier-firmware.

repetier avatar repetier commented on August 16, 2024

You diddn't understand what I meant. If you install Arduino 1.0, you can't compile for Sanguni boards because there is no Sangunio hardware package in the Arduinio package included. What I meant is where did you get your sanguni package from and which version did you use.

BTW: If you got the firmware compiled I guess you did it right. The problem is that Sangunio wasn't developed for Ardunio 1.0 so I made some changes so it should work and in fact I use the sanguino package with windows and ardunio 1.0 for my own board (GEN 6) sucessfully.

from repetier-firmware.

abend0c1 avatar abend0c1 commented on August 16, 2024

Now I'm confused :) What is this "Sanguni" or "Sangunio" that you mention? This is what I've done so far (sorry, I should have been more explicit in the first place):

  1. Built a Sanguinololu 1.3a board from http://www.xyzprinters.com/electronics/148-prusa-all-you-need-electronics-kit.html
  2. Downloaded Arduino-1.0 IDE from http://arduino.googlecode.com/files/arduino-1.0-linux64.tgz
  3. Downloaded Repetier-firmware as a zip from https://github.com/repetier/Repetier-Firmware/zipball/master
  4. Unzipped both those downloaded archives into my home directory
  5. Copied ~/repetier-Repetier-Firmware-b8eb21a/boards/Sanguino 1.0+/boards.txt into the top of ~/arduino-1.0/hardware/arduino/boards.txt (i.e. I didn't replace the Arduino-supplied boards.txt, I just inserted yours at the top)
  6. Started the Arduino-1.0 IDE by running ~/arduino-1.0/arduino and opened sketch ~/repetier-Repetier-Firmware-b8eb21a/Repetier/Repetier.pde
  7. Converted the pde sketch file to ino format as suggested by the Arduino-1.0 IDE (the *.pde was renamed to *.ino)
  8. Tried to compile but got the following error:
    In file included from Reptier.h:23:0,
    from gcode.cpp:25:
    ~/arduino-1.0/hardware/arduino/cores/arduino/Arduino.h:212:26: fatal error: pins_arduino.h: No such file or directory
    compilation terminated.
  9. Added "sanguino.build.variant=standard" to the end of the build.txt statements so they now look like:
    sanguino.name=Sanguino
    sanguino.upload.protocol=arduino
    sanguino.upload.maximum_size=63488
    sanguino.upload.speed=38400
    sanguino.bootloader.low_fuses=0xFF
    sanguino.bootloader.high_fuses=0xDC
    sanguino.bootloader.extended_fuses=0xFD
    sanguino.bootloader.path=atmega644p
    sanguino.bootloader.file=ATmegaBOOT_644P.hex
    sanguino.bootloader.unlock_bits=0x3F
    sanguino.bootloader.lock_bits=0x0F
    sanguino.build.mcu=atmega644p
    sanguino.build.f_cpu=16000000L
    sanguino.build.core=arduino
    sanguino.build.variant=standard

##############################################################

  1. Recompiled successfully. Compile ends with the message:
    Binary sketch size: 32510 bytes (of a 63488 byte maximum)
  2. Uploaded firmware successfully - although I had to hit the reset button after starting the upload to get it to work. That seems to be the accepted voodoo with arduino-like boards :)

Note: I didn't copy your wiring_serial.c or Arduino.h files into the Arduino-1.0 directory tree mainly because I wasn't (and still am not) exactly sure where they should go!

from repetier-firmware.

repetier avatar repetier commented on August 16, 2024

Ok, I understand why you had problems. You have a Sanguinolu board which is not directly supported by Arduino. You need a special hardware definition for that board, which you get from http://sanguino.cc/ . There you'll find a installation description. In the files you get from them you make the replacements described in my firmware. Just make sure that the Arduino.h file conatins

#include "WProgram.h"
#define COMPAT_PRE1

the last line is currently missing.
Then you select the Sanguino board in Arduino and compile. (remove the before inserted code in the boards.txt)

from repetier-firmware.

abend0c1 avatar abend0c1 commented on August 16, 2024

Thanks repetier, the compile works now :)

Although, because I'm using Ubuntu 11.10, there was a hack to do first. I had to insert "#undef round" at line 425 in /usr/lib/avr/include/math.h otherwise I get a compile error. See http://forums.reprap.org/read.php?146,107925,107925,quote=1 for the exact symptom I was getting.

from repetier-firmware.

repetier avatar repetier commented on August 16, 2024

Thanks for the #undef hint. Might be usefull if I have complains from Ubuntu user.

from repetier-firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.