Arduino Problems

Hello,
I installed Arch on my netbook, and so far everything works quite well, bit I have a problem with Arduino.
I installed it as mentioned in the wiki and the IDE workes good an I also can upload code to the Arduino.
But unfortunately I have the described delay bug the solution described in the Forum link is for Binutils Version 2.20 but I've Version 2.21 installed.
Is there a chance to get a patched Version 2.21. anywhere? And there seems to be a patched version needed for gcc-avr also.
Is anyone here who can help me with this Problem. I wouild really apreciate to write and upload Arduino code with Arch.
Thanks ina advance
Uwe

Hi.
I have Arduino working on my x64 system.  As far as I can tell, anyway. Blink certainly works properly now.
I have a PKGBUILD archive (untar in /var/abs/local) which works for x64. Not tried it on i686, obviously but can't see why it shouldn't work. This was modified slightly from the one provided by the chap from the Debian archive (I made cloog_ppl two seperate dependencies, cloog and ppl , otherwise unchanged).
http://www.cyquiz.com/arduino-packagebuilds.tar.gz
To get it up and running, build the gcc-avr and binutils-avr packages and install them, then install avr-libc from the repos. Then download arduino from the AUR and build and install that package. It should work
You have to add gcc-avr and binutils-avr to IgnorePkg (remove the #) to stop pacman upgrading them.
Contact me if you have any problems. If you are on x64 I can send you working packages for gcc-avr binutils-avr and arduino.

Similar Messages

  • Binutils-avr bugged

    Binutils-avr is bugged:
    http://arduino.cc/forum/index.php/topic … #msg410902
    On my Arch, the Arduino IDE doesn't compile good code: I cannot use not only the delay() function but I get some deeper problems.
    It is known that Debian has published several months ago some patches to correct these bugs and that Debian/Ubuntu packages of binutils-avr e avr-gcc are compiled using these patches, and I can confirm that on Ubuntu I don't have any problem.
    On Arch someone has tried to create some patched versions of binutils-avr and avr-gcc but I wasn't able to compile them because of the dependencies....
    So, my question is: will the manteiner of this package update it using the patches from Debian? Or is there a way to compile them?
    Because I NEED to use Arduino and if there's not a quickly solution I will be forced to change OS...

    Hello,
    sorry to push this topic back up again.
    I just newly installed Arch on my netbook, and everything is working fine. Exept this Arduino problem with the delay bug.
    As I'm not that deep into Linux. I'm a bit lost at the moment not knowing what to do.
    I downloaded the fie gcc-avr-debian-pkgbuilds.tar.gz fom the above mentioned link, but what schould i do with it now.
    Any help would be welcome.
    Thanks
    Uwe

  • Problem when Reading Multiple values from Arduino to Vb

    Hi Mates,
    I am getting 4 values from Arduino using Serial.Println statement 4 times. How do I need to receive these values to 4 different variables in VB without using any buttons. We have to serial data received as per my knowledge.
    I've written the following code in VB.
    Imports System
    Imports System.ComponentModel
    Imports System.Threading
    Imports System.IO.Ports
    Public Class Form1
        Dim myPort As Array  'COM Ports detected on the system will be stored here
        Delegate Sub SetTextCallback(ByVal [text] As String) 'Added to prevent threading errors during receiveing of data
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            SerialPort1.PortName = "COM5"         'Set SerialPort1 to the selected COM port at startup
            SerialPort1.BaudRate = 9600         'Set Baud rate to the selected value on
            SerialPort1.Open()
            'Timer1.Start()
        End Sub
        Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
            ReceivedText(SerialPort1.ReadLine())    'Automatically called every time a data is received at the serialPort
        End Sub
        Private Sub ReceivedText(ByVal [text] As String)
            'compares the ID of the creating Thread to the ID of the calling Thread
            If Me.rtbReceived.InvokeRequired Then
                Dim x As New SetTextCallback(AddressOf ReceivedText)
                Me.Invoke(x, New Object() {(text)})
            Else
                Me.rtbReceived.Text &= [text]
            End If
        End Sub
    End Class
    How do I need to differentiate the values in ReceivedText function and How can I display those values in 4 text boxes. I am able to display all the values in rtbReceived text box as 100200300400100200300400... So on
    Assume values from Arduino are 100, 200, 300 & 400
    Your suggestions would be more helpful to complete my project, Thanks in Advance
    Thanks,
    Santhosh

    How do I need to differentiate the values in ReceivedText function and How can I display those values in 4 text boxes. I am able to display all the values in rtbReceived text box as 100200300400100200300400... So on
    Assume values from Arduino are 100, 200, 300 & 400
    Based on the example you have provided you would simply use the String.Substring function to break the string apart ot every 4 characters.
    https://msdn.microsoft.com/en-us/library/aka44szs%28v=vs.110%29.aspx
    You could do that in a loop that changes the starting character position from 0 in an increment of 4.
    However I suspect that won't work properly, either because there are characters that you are not revealing as a result of the way that you are display your results, or because your data gets out of sync. 
    If your device sends synchronizing characters (such as an end-of-record byte, or perhaps just a CrLf) then the correct process is to append (not overwite) the text you receive.  Use a string, not a text box text property, for this buffer. Then you need
    to break apart this buffer by scanning forward until you find a complete message - a record identifier and enough (12?) following characters to create a full sentence.  Then break it apart using substrings.
    If your device data stream does not include something that marks the beginning or end of a complete transmission then you can still try breaking it apart every four characters, and see how reliable it is.

  • Communication problem with Arduino UNO R3

    Hello,
    I'm using Labview 2011 to automate a part of the line used to sample's preparation linked to a mass spectrometer. I'm using an Arduino UNO R3 which is linked to valves and I'm supposed to talk to it via numerical signal in order to open or close valves. 
    This Arduinbo is linked to computer via an extension USB cord (almost 10m) and is detected as a COM Port.
    Communication works well when I've just rebooted computer, but when some time have passed the communication seems to degrade and the following errors appear :
    - "Ressource is valid but VISA cannot access to it" when the port COM isn't detected anymore neither by Labview nor by Arduino software wheras Windows can detect it. As advised at this adress (http://digital.ni.com/public.nsf/allkb/936298454061FE5886256C2A0060B321) I executed the first test (desabling of COM port) but not the second one as there is no more Hyperterminal on Windows 7. I dowloaded the equivalent software called Hyperterminal private edition but I don't know the computer control sentences to use to verify if the dialog is of good quality. 
    - Error 5002 also appear, but I verified all the possible reasons enumerated at this address and it cannot be that : http://digital.ni.com/public.nsf/allkb/15AE7F234C5B966886257884006DF1CD
    These bugs appears randomly, this can be just after first launch of .vi or two hours later. 
    Can it be a degradation of numerical signal?
    I put in attachment of the email, reports that were send to me during some of these bugs. 
    Thanks a lot.
    Attachments:
    420dc8d6-e465-4d52-970e-f5c95118fd04.zip ‏74 KB
    452c6aea-2264-4d7e-8554-7095a72ec168.zip ‏36 KB

    Without repeater the USB cable is specified only up to 5m.
    Have run a test with a short cable?
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Problema arduino y labview

    Hola buenas tardes veréis, estoy utilizando el arduino como adquisición de datos y las tensiones que me llegan van de 0 a 10 V,
    sin embargo, el arduino no me detecta mas de 5V en ninguna entrada analógica y en mi programa de labview no sube de 5 V las gráficas que me muestran las entradas(lógicamente).
    Alguna idea de como puedo hacer que mi arduino detecte la evolución de 0 a 10V en los pines analogicos?(estoy utilizando el lifa_base en labview)

    Estimado Sergiofefu,
    Los arduinos regularmente trabajan con  senales de 5V en sus canales analogicos de entrada. Cambiando la senal de 'analogreference' puedes alterar el valor maximo pero no se recomienda ir a mas de 5 V. Por lo que la razon de que no puedes leer mas de 5V es que tu Arduino solo puede digitalizar 5V.
    Espero que puedas solucionar este detalle. Te recomiendo un divisor de voltaje (son faciles y rapidos de implementar).
    saludos
    Erwin Franz R.

  • Análise de vibração de um motor a partir de Arduino e identificação de falhas

    Olá a todos. Sou novato no mundo do LabVIEW, por isso gostaria de uma ajuda de vocês. Tenho em minha faculdade o LabVIEW 2010.
    Estou realizando meu projeto de final de curso e tenho como objetivo identificar falhas em um motor a partir da vibração medida com um acelerômetro. Para explicar melhor meu objetivo, separei ele em três problemáticas:
    - Aquisição de dados:
    O primeiro passo é realizar a aquisição dos dados provindos do sensor. Visando baixos custos, opitei por usar o conjunto Arduino + Sensor ADXL345. Porém tive dificuldades em utilizar o protocolo I2C com o LabVIEW usando o LIFA (LabVIEW Interface for Arduino). Acabei optando por utilizar o próprio Arduino para medir a vibração e usar o VISA do LabVIEW para realizar a aquisição de dados. Para isso utilizei o VI em anexo que encontrei na internet. ele funciona muito bem, mas gostaria de utilizá-lo como Sub-VI em outro VI, já que o acelerômetro tem três medidas (X, Y e Z) e estou tendo dificuldades para isso, graças ao White Loop. Tirando o White Loop e os Switches, não consegui fazer dados saírem para outro VI, alguém pode me dar uma luz?
    - Tratamento dos dados:
    Antes de identificar o erro, gostaria de aplicar uma transformada de fourier nos dados que estão entrando (x, y e z) a fim de gerar um gráfico no fomínio da frequência. Alguém tem um exemplo de uso do bloco de transformada de Fourier no LabVIEW para eu estudar? Outras dicas são muito bem vindas.
    - Comparação dos dados:
    O último passo é usar alguma técnica de comparação de dados (como o Comparison Express) para comparar a vibração do motor com dados previamente armazenados em um arquivo de texto ou planilha, com a finalidade do LabVIEW identificar por conta própria qual é a falha presente no motor. Porém tive dificuldades em usar um arquivo como Input no Comparison Express, alguém já fez isso antes?
    Enfim, agradeço antecipadamente qualquer ajuda que receber. Como sou novo no LabVIEW, estou tendo várias dificuldades, mas espero conseguir atingir meus objetivos. Lembrando que estou com o LabVIEW 2010, se vocês puderem compartilhar VIs compatíveis vão me ajudar muito.
    Anexos:
    Data Aquisition.vi ‏37 KB

    Bom dia otaconlink. Tudo bem?
    Aquisição de dados:
    Gostaria de saber o que você gostaria de modificar no programa, são os dados de vibração?
    Tratamentos de dados:
     O seguinte link indica alguns exemplos aplicáveis ao seu programa:
    http://venus.ni.com/nisearch/app/main/p/bot/no/sn/catnav%3Aexample/ses/false/ap/global/q/fourier/lan...
    Comparação de dados:
    Você pode utilizar a estrutura de caso.
    Alguns exemplos de comparação de dados:
    http://zone.ni.com/devzone/cda/epd/p/id/4719
    http://zone.ni.com/devzone/cda/epd/p/id/5219
    https://decibel.ni.com/content/docs/DOC-12441
    http://zone.ni.com/devzone/cda/epd/p/id/5785
    Atenciosamente.
    Erick Yamamoto
    Application Engineer
    National Instruments Brazil
    Visite a nossa comunidade em PORTUGUÊS!!!

  • Data acquisition synchronisation Arduino/LabView

    Hello,
    I'm trying to acquire force sensor values using an Arduino board (reading the data and controlling a motor) and LabView. The data acquisition rate is tunable according to the motor condition, meaning a high acquisition rate (short delay) during the ON state of the motor and a low acquisition rate (long delay) during the OFF state of the motor.
    I managed to acquire the data, but till now I always find some "0" values though I'm applying a continuous force on the sensor. I guess the main problem is the synchronisation of the "datarate" on the Arduino board and the acquisition time point in LabView.
    I hope that you could halp me, since I'm trying since weeks to overcome this problem. You will find both the LabView and the Arduino source codes in the attachment.
    Attachments:
    CBR control_opti.vi ‏206 KB
    CBR_Arduino.docx ‏15 KB

    Dear all,
    last week I had some limited time, which I could dedicate to my work with Labview. Unfortunately I'm not able to solve the problem with the Consumer/Producer architecture. It seems to be the appropiate solution, but due to my limited knowledge I'm not capable of doing that.
    I will add my modifications (CBR control_Prod-Cons.vi) to give you an idea about what I've achieved so far. I appriciate any help of you, since this story is driving me crazy. Additionally, I attach a JPG showing the readout I'm obtaining with the old version (CBR control.vi), where the red circles indicate the problem with the "0" values.
    Thank you again,
    Cheers 
    Attachments:
    CBR control_Prod-Cons.vi ‏203 KB
    sensor read out.JPG ‏164 KB
    CBR control.vi ‏206 KB

  • Time offset problems with file i/o

    Hello everyone, I'm having a problem with the file i/o VI's. I require my application to save serial data at constant five minute intervals. The problem I'm currently seeing is that on each save to a file a time offset is being added which eventually becomes seconds, then minutes and so on. Since this application is meant to be run for a whole year this is a serious problem.
    Attached is the VI, an Arduino program simulating how the DAQ sends data and a file showing my time offset problem. 
    Any ideas/suggestions/fixes are appreciated.
    Thanks
    Jose Molina
    P.S.
    To run the VI upload the code to an Arduino, select it's serial port in the popup VI then click on Ok. The VI will wait for a time that is a modulo of 5 then create a folder structure inside the same location as the LLB. Inside this folder structure should be a file with the data which should be saved every five minutes if left at the default averaging time.
    Attachments:
    7-8-2012.txt ‏3 KB
    Daq_Simulator.zip ‏1 KB
    Weather_DAQ.zip ‏117 KB

    Sorry I forgot to mention that the averaging time is configurable in the pop up vi at the start. I tried 20 seconds because it's much faster for testing than 5 minutes. Timing is being done by a simple counter that increments each time data is received. So if I receive data the timer increments by 5 because data is sent every 5 seconds. Once the timer is equal to the averaging time the data is sent to the enqueue function and then the blocking dequeue function on the second loop sends the data to the file save vi which then saves the data to the file. 
    Attachments:
    counter.PNG ‏13 KB

  • Problems to create a basic LED program

    Hi guys, I'm starting to work with Labview and also Arduino and I'm facing some problems. I created a program to make two LEDs blink in parallel using Arduino. This program worked fine, but now I want to make it a little bit more complex inserting a button to select which one of the LEDs will blink. I created a logic to do this but it's not possible to implement it due to the different kind of connections (digital, boolean, string). I would like to know if someone can help me with this. I'm posting the VI. Note that I left the logic that I created in the VI, so you can see what I thought to do. Thank you!
    *Ps: I don't know why I'm not able to post my VI. When I try to post with it attached I receive the following message: "The contents of the attachment doesn't match its file type.". So i'm posting one picture of the circuit. =/

    What options are you looking for?  Both blink, neither blink, LED1 only blinks, LED2 only blinks?
    As far as not able to post a VI, we've had that issue for awhile.  I just zip up any VIs I need to post and post the zip file.  Snippets also work well.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to create an exe file using labview and arduino?

    I bought Arduino Mega 2560. I have installed Arduino IDE 1.7.3. I am using Windows 7 64bit version and Labview 2012. I started working after the compilation of LIFA_Base File with Arduino IDE and with labview.
    My application is: I have connected my arduino to my PC via USB for read input/output pins. I have to read all the time an analogue input from arduino and I have to draw the graphical representation of the input. I would like to know if I can create an exe file of this application. I would like to use the created exe file to another PC without labview installation. 
    Please help me to resolve the problem.
    Regards

    Yup you sure can.  With Application Builder, that is bundled with several LabVIEW packages you can make an EXE, and then make an installer that can include the LabVIEW Run-Time engine (free) and you'll also need the VISA run-time for talking to serial devices like your Arduino.
    Then you should be able to run that installer on any normal Windows PC and without the development environment be able to run your program.
    Note that currently Student, and Home versions of LabVIEW do not have the application builder since it is intended for learning, and hobbyist, not for distributions.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Using LabView, Arduino, and Easy-Driver to control a Stepper Motor

    Hello fair folks of the LabView forums!
    I am a humble engineering student in need of some advice and input on a project I am working on.
    I’ve also done a fair amount of reading on the LabView forums with people trying to use LabView and Arduino to control stepper motors, and I’ve used as much information from each as I could. However the problem I'm encountering now is one which is unique to my VI Configuration.
    So, here is what has been done thus far:
    -Installed LabView Interface for Arduino [LIFA]
    -Installed necessary VISA drivers for LabView to communicate with arduino
    -Uploaded firmware to Arduino to allow it to communicate with LabView
    -Properly wired Stepper Motor with Easy Driver and Power Supply; I have verified this by first using the Arduino independently of LabView, using example code found here.
    -I have created a VI, and have just recently got it to run without reporting back any errors. While I suspect the behavior I’m encountering has to do with something inside the VI, it is difficult to determine as there are no errors being reported!
    But here is general problem I am encountering:
    -Connect Joystick to USB Port, connect Arduino to USB Port.
    -Plug in outlet for Power Supply
    -Open LabView VI
    -Run LabView VI
    -LabView successfully detects Joystick, and Arduino.
    -Tilt Joystick; Stepper Motor moves in proper direction, but it only takes a single step. If held, it does not move further. If returned to zero, and then tilted, it again only takes a single step.
    I know that in the example code, the Arduino issued the step command by writing the signal from LOW to HIGH, and varied the speed by how often it did this.
    I assumed that the Write-PWM feature would do this same thing, but perhaps my assumption is wrong. I will continue to tinker with this myself, but I would be extremely grateful for any insight you might be able to lend.
    I’m thinking, if not the Arduino Write-PMW feature perhaps a simple timing-sequence that could be used to alternate between writing 0 and 1, with the timescale of the sequence being scaled to the X-Axis from the Joystick. But, I am open to suggestions, and certainly appreciate any thoughts you may have to offer!
    Attached to this is the VI used in this setup, a picture of said VI, as well as a rough sketch of the hardware configuration.
    Thank you!
    Attachments:
    Arduino Stepper Control.vi ‏1224 KB
    VI Picture.png ‏82 KB
    Configuration Sketch.png ‏522 KB

    Hi danjifraga,
    I am not so familiar with the Arduino toolkit functions, but you may have better luck looking at the Arduino page at:
    www.ni.com/arduino
    I'll ask around on Monday to see if anyone is more familiar with the toolkit.
    Good luck,
    Brian
    Brian G.

  • Getting Applescript to read Arduino

    Hi everyone,
    First-time poster so please go easy on me   I've got an Arduino project that involves Applescript reading the Arduino's serial monitor. I think I've got the Arduino half going well, but I'm not sure how to Applescript a code that reads the results and executes an Applescript command that skips to the next track in itunes. I've been tinkering around Applescript with little success. Any help would be greatly appreciated.
    A huge and many thanks in advance

    I know it has been a long time but did you find a solution for your problem?
    I am also playing around with the arduino mega 2560 R3

  • How to enable 2 or more analog input pin in arduino uno labview simultaneo​usly for voltage analysis?

    Hi everyone,
    i am new to labview and using arduino uno board for measuring microwave analysis in my project. i want to measure the refflection coefficient by dividing two analog input received to arduino (Vref and Vin) to obtain so. problems come where i just can analyze only one analog input pin only. please, kindly helped to figure it out.i've try the others solution where i create two while loops for different analog pin. u can refer to my circuit in the attachment below.i really2 appreciate ur help, thank you.=)
    Attachments:
    reflection coefficient and Vswr.vi ‏665 KB
    front panel.PNG ‏66 KB
    block diagram.PNG ‏40 KB

    Try this if you have a POT around hook it up to the arduino than use the AnalogInSerial.pde and  load it to your arduino exit out of the arduino platform and  than try my VI see if this helps you.
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    TalkToArduino.vi ‏28 KB

  • The official Arduino thread

    So, I'm opening this topic to discuss about our favorite hardware platform. There is a wiki page to get you started [1], and of course there is the arduino-sdk in aur [2]. Feel free to talk about both the harware and software part.
    [1] https://wiki.archlinux.org/index.php/Arduino
    [2] https://aur.archlinux.org/packages.php?ID=8388
    Last edited by maevius (2011-08-25 20:22:11)

    Grab a cup of coffee and read on! Here are my findings
    I tried to install arduino in my desktop x86_64 in order to test your points, and that's what I came up with.
    Arduino loads fine without cdc-acm and ftdi_sio. I don't know whether they are needed afterwards though.
    +1 to link to arduino package in AUR. I'm on it.
    I don't know about the Two Wired interface problem you describe. If that happens only on rare occasions and is not a universal problem, I say we move that to Troubleshooting section.
    +1 about the removal of manual editing of preferences.txt. First time I installed arduino, I followed the wiki by the book so I don't really know which parts are redundant.
    Cool.
    Also I faced a problem with java. It might be a rare occasion but it would be ok if we added this to troubleshooting.
    When I tried to run arduino as root I got this
    No protocol specified
    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at java.awt.Toolkit$2.run(Toolkit.java:849)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
    at processing.core.PApplet.<clinit>(Unknown Source)
    at processing.app.Base.main(Base.java:112)
    Anyway, I solved it following this guy's instructions.
    Now, regarding the gcc-avr-4.6.1-1 that causes compilation errors, we have two solutions.
    Either use this to patch arduino-headers.
    Or install gcc-avr-svn which is confirmed to work.
    I tested gcc-avr-svn but the same error occurs unfortunately... I applied the patch and compilation works without issue with latest gcc-avr/svn.
    Could you try the svn solution to check if the problem came back so that we report it?
    Last edited by maevius (2011-08-26 09:01:01)

  • Has anybody got Arduino to Work in ArchLinux?

    I've tried via the aur and yaourt but it spits a load of errors out for me.
    I've also tried
    http://www.nongnu.org/avr-libc/user-man … r_binutils
    but when trying to make gcc i get
    libgcc/./_eprintf.o
    cc1: error: unrecognized command line option "-march=i686"
    make[3]: aurpage PKGBUILD [libgcc/./_eprintf.o] Error 1
    make[3]: Leaving directory `/home/firewalker/Desktop/gcc-avr4.1.1/src/gcc-4.1.1/objdir/gcc'
    make[2]: aurpage PKGBUILD [stmp-multilib] Error 2
    make[2]: Leaving directory `/home/firewalker/Desktop/gcc-avr4.1.1/src/gcc-4.1.1/objdir/gcc'
    make[1]: aurpage PKGBUILD [all-gcc] Error 2
    make[1]: Leaving directory `/home/firewalker/Desktop/gcc-avr4.1.1/src/gcc-4.1.1/objdir'
    make: aurpage PKGBUILD [all] Error 2
    I have no idea why it says /home/firewalker.
    I'm a little surprised that the word "arduino" returned with no hits at this forum.
    It was a piece of piss in Ubuntu but i don't want to use that distro anymore.
    Last edited by regomodo (2007-10-17 00:06:12)

    I just got the makefile to work at long last! I followed PenguinFlavored's instuctions to install everything but i was still having problems (I get the feeling that since they posted that makefile they've made a few changes) so I played around with a modified makefile a bit (got it from here: http://www.arduino.cc/cgi-bin/yabb2/YaB … 1187984620 ) and ended up with this:
    # Arduino makefile - Modified again by Stephen Hodgson
    # This makefile allows you to build sketches from the command line
    # without the Arduino environment (or Java).
    # Previous work on this file was done by mellis, eighthave and probably
    # many others.
    # Last State: 28.08.2007 | 15:00 CEST
    # -- oli.keller ][ gmail.com
    # This is a fork of the original makefiles shipped with Arduino 0009.
    # It tries to reassemble the preprocessing which the Arduino IDE does.
    # This makefile even allows to create an automatic reset,
    # like the Arduino IDE does on an Arduino Diecimila board!
    # No no, you don't have to push that tiny button again and again... ;)
    # You should only have to check the first six variables below for
    # propper settings. That's it.
    # Detailed instructions for using the makefile:
    # 1. Copy this file into the folder with your sketch. There should be a
    # file with the ending .pde (e.g. foo.pde)
    # 2. Below, modify the line containing "TARGET" to refer to the name of
    # of your program's file without an extension (e.g. TARGET = foo).
    # 3. Modify the line containg "INSTALL_DIR" to point to the directory that
    # contains the Arduino installation (for Arduino installations in
    # Mac OSX, this could be /Applications/arduino-0009 ).
    # 4. Modify the line containing "PORT" to refer to the filename
    # representing the USB or serial connection to your Arduino board
    # (e.g. PORT = /dev/tty.USB0). If the exact name of this file
    # changes, you can use * as a wildcard (e.g. PORT = /dev/tty.USB*).
    # 5. Set the line containing "MCU" to match your board's processor.
    # Older one's are atmega8 based, newer ones like Arduino Mini, Bluetooth
    # or Diecimila have the atmega168.
    # 6. At the command line, change to the directory containing your
    # program's file and the makefile.
    # 7. Type "make" and press enter to compile/verify your program.
    # In TextMate you can just hit Command-R to trigger make.
    # 8. Type "make upload", reset your Arduino board, and press enter to
    # upload your program to the Arduino board.
    # $Id$
    # project specific settings
    TARGET = blink
    INSTALL_DIR = /usr/share/arduino/hardware/cores/arduino
    # serial uploader settings
    PORT = /dev/ttyUSB0
    UPLOAD_RATE = 19200
    AVRDUDE_PROGRAMMER = arduino
    # HINT: If you want to use the automatic reset feature which comes with Arduino
    # Diecimila, put the follwoing in your avrdude.conf:
    # (Use the systemwide $(INSTALL_DIR)/tools/avr/etc/avrdude.conf or create a
    # local $HOME/.avrduderc file)
    # programmer
    # id = "arduino";
    # desc = "Arduino Serial Bootloader";
    # type = stk500;
    # reset = 7;
    # # since Arduino Diecimila the serial DTR line can be used to trigger a reset!
    # After this you can specify AVRDUDE_PROGRAMMER = arduino, above.
    # On older boards you can manually ad this reset feature. Wire a cable from the
    # FTDI 232 Chip's DTR pin (the number differs from package to package, see datasheet)
    # to the RESET line of the ATmega. Inbetween this connection must be a 100nF capacitor.
    # hardware dependent settings
    MCU = atmega168
    F_CPU = 16000000
    # F_CPU sets the clock speed in Hz. So far its 16MHz on all standard boards.
    # Below here nothing should be changed...
    #I changed this one
    #ARDUINO = $(INSTALL_DIR)/lib/targets/arduino
    ARDUINO = /usr/share/arduino/hardware/cores/arduino
    #and this one
    #AVR_TOOLS_PATH = $(INSTALL_DIR)/tools/avr/bin
    AVR_TOOLS_PATH = /opt/avr/bin/
    SRC = $(ARDUINO)/pins_arduino.c $(ARDUINO)/wiring.c \
    $(ARDUINO)/wiring_analog.c $(ARDUINO)/wiring_digital.c \
    $(ARDUINO)/wiring_pulse.c $(ARDUINO)/wiring_serial.c \
    $(ARDUINO)/wiring_shift.c $(ARDUINO)/WInterrupts.c
    CXXSRC = $(ARDUINO)/HardwareSerial.cpp $(ARDUINO)/WRandom.cpp
    FORMAT = ihex
    # Name of this Makefile (used for "make depend").
    MAKEFILE = Makefile
    # Debugging format.
    # Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
    # AVR (extended) COFF requires stabs, plus an avr-objcopy run.
    DEBUG = stabs
    OPT = s
    # Place -D or -U options here
    CDEFS = -DF_CPU=$(F_CPU)
    CXXDEFS = -DF_CPU=$(F_CPU)
    # Place -I options here
    CINCS = -I$(ARDUINO)
    CXXINCS = -I$(ARDUINO)
    # Compiler flag to set the C Standard level.
    # c89 - "ANSI" C
    # gnu89 - c89 plus GCC extensions
    # c99 - ISO C99 standard (not yet fully implemented)
    # gnu99 - c99 plus GCC extensions
    CSTANDARD = -std=gnu99
    CDEBUG = -g$(DEBUG)
    CWARN = -Wall -Wstrict-prototypes
    CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
    #CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
    CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD) $(CEXTRA)
    CXXFLAGS = $(CDEFS) $(CINCS) -O$(OPT)
    #ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
    LDFLAGS = -lm
    # Programming support using avrdude. Settings and variables.
    AVRDUDE_PORT = $(PORT)
    AVRDUDE_WRITE_FLASH = -U flash:w:applet/$(TARGET).hex
    #This got modified as well
    #AVRDUDE_FLAGS = -V -F -C $(INSTALL_DIR)/tools/avr/etc/avrdude.conf -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
    # -b $(UPLOAD_RATE)
    AVRDUDE_FLAGS = -V -F -C /usr/share/arduino/hardware/tools/avrdude.conf -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
    -b $(UPLOAD_RATE)
    # Program settings
    CC = $(AVR_TOOLS_PATH)/avr-gcc
    CXX = $(AVR_TOOLS_PATH)/avr-g++
    OBJCOPY = $(AVR_TOOLS_PATH)/avr-objcopy
    OBJDUMP = $(AVR_TOOLS_PATH)/avr-objdump
    AR = $(AVR_TOOLS_PATH)/avr-ar
    SIZE = $(AVR_TOOLS_PATH)/avr-size
    NM = $(AVR_TOOLS_PATH)/avr-nm
    AVRDUDE = $(AVR_TOOLS_PATH)/avrdude
    REMOVE = rm -f
    MV = mv -f
    # Define all object files.
    OBJ = $(SRC:.c=.o) $(CXXSRC:.cpp=.o) $(ASRC:.S=.o)
    # Define all listing files.
    LST = $(ASRC:.S=.lst) $(CXXSRC:.cpp=.lst) $(SRC:.c=.lst)
    # Combine all necessary flags and optional flags.
    # Add target processor to flags.
    ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS)
    ALL_CXXFLAGS = -mmcu=$(MCU) -I. $(CXXFLAGS)
    ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
    # Default target.
    all: applet_files build sizeafter
    build: elf hex
    applet_files: $(TARGET).pde
    # Here is the "preprocessing".
    # It creates a .cpp file based with the same name as the .pde file.
    # On top of the new .cpp file comes the WProgram.h header.
    # At the end there is a generic main() function attached.
    # The ne .cpp file will be compiled. Errors during compile will
    # refer to this new, automatically generated, file.
    # Not the original .pde file you actually edit...
    test -d applet || mkdir applet
    echo '#include "WProgram.h"' > applet/$(TARGET).cpp
    cat $(TARGET).pde >> applet/$(TARGET).cpp
    echo 'int main(void) '\
    ' init(); '\
    ' setup(); '\
    ' for (;;) '\
    ' loop(); '\
    ' return 0; '\
    '} ' >> applet/$(TARGET).cpp
    elf: applet/$(TARGET).elf
    hex: applet/$(TARGET).hex
    eep: applet/$(TARGET).eep
    lss: applet/$(TARGET).lss
    sym: applet/$(TARGET).sym
    # Program the device.
    upload: applet/$(TARGET).hex
    $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
    # Display size of file.
    HEXSIZE = $(SIZE) --target=$(FORMAT) applet/$(TARGET).hex
    ELFSIZE = $(SIZE) applet/$(TARGET).elf
    sizebefore:
    @if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
    sizeafter:
    @if [ -f applet/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(HEXSIZE); echo; fi
    # Convert ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB.
    COFFCONVERT=$(OBJCOPY) --debugging \
    --change-section-address .data-0x800000 \
    --change-section-address .bss-0x800000 \
    --change-section-address .noinit-0x800000 \
    --change-section-address .eeprom-0x810000
    coff: applet/$(TARGET).elf
    $(COFFCONVERT) -O coff-avr applet/$(TARGET).elf $(TARGET).cof
    extcoff: $(TARGET).elf
    $(COFFCONVERT) -O coff-ext-avr applet/$(TARGET).elf $(TARGET).cof
    .SUFFIXES: .elf .hex .eep .lss .sym
    .elf.hex:
    $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
    .elf.eep:
    -$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
    --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
    # Create extended listing file from ELF output file.
    .elf.lss:
    $(OBJDUMP) -h -S $< > $@
    # Create a symbol table from ELF output file.
    .elf.sym:
    $(NM) -n $< > $@
    # Link: create ELF output file from library.
    applet/$(TARGET).elf: $(TARGET).pde applet/core.a
    $(CC) $(ALL_CFLAGS) -o $@ applet/$(TARGET).cpp -L. applet/core.a $(LDFLAGS)
    applet/core.a: $(OBJ)
    @for i in $(OBJ); do echo $(AR) rcs applet/core.a $$i; $(AR) rcs applet/core.a $$i; done
    # Compile: create object files from C++ source files.
    .cpp.o:
    $(CXX) -c $(ALL_CXXFLAGS) $< -o $@
    # Compile: create object files from C source files.
    .c.o:
    $(CC) -c $(ALL_CFLAGS) $< -o $@
    # Compile: create assembler files from C source files.
    .c.s:
    $(CC) -S $(ALL_CFLAGS) $< -o $@
    # Assemble: create object files from assembler source files.
    .S.o:
    $(CC) -c $(ALL_ASFLAGS) $< -o $@
    # Target: clean project.
    clean:
    $(REMOVE) applet/$(TARGET).hex applet/$(TARGET).eep applet/$(TARGET).cof applet/$(TARGET).elf \
    applet/$(TARGET).map applet/$(TARGET).sym applet/$(TARGET).lss applet/core.a \
    $(OBJ) $(LST) $(SRC:.c=.s) $(SRC:.c=.d) $(CXXSRC:.cpp=.s) $(CXXSRC:.cpp=.d)
    depend:
    if grep '^# DO NOT DELETE' $(MAKEFILE) >/dev/null; \
    then \
    sed -e '/^# DO NOT DELETE/,$$d' $(MAKEFILE) > \
    $(MAKEFILE).$$$$ && \
    $(MV) $(MAKEFILE).$$$$ $(MAKEFILE); \
    fi
    echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' \
    >> $(MAKEFILE); \
    $(CC) -M -mmcu=$(MCU) $(CDEFS) $(CINCS) $(SRC) $(ASRC) >> $(MAKEFILE)
    .PHONY: all build elf hex eep lss sym program coff extcoff clean depend applet_files sizebefore sizeafter
    It seems to work with Arduino 0010 but it wants to be run as root. Maybe I'll get that sorted at some point if it's easy to do.

Maybe you are looking for

  • MSI nVidia GeForce 4200 TI driver problem

    Hi.. I really need your help guys.. First of all, I have Windows XP Pro. Okay, I have this MSI nVidia GeForce 4200 TI card, and wanted to change drivers. I had 50.xx, and wanted to change back to 40.xx, because it works better with Counter-Strike. So

  • Acrobat 8.1.2 crashes Word 2003

    I'm running Acrobat 8.1.2 on Windows XP Pro SP 2. It used to work fine (had it for over a year) scanning in documents, running OCR and exporting to Word, but suddenly and for no discernible reason Word freezes if I try to scroll past the first page o

  • Why is my iMac no longer recognizing Memorex CD-R and DVD-R media that it burned previously?

    So this has happened before to me with other computers and other drives, I've had burners refuse to recognize some brands of blank discs before, but I've never really figured out the issue or had a drive start to refuse to recognize a specific brand

  • Change shipping information address

    I'm trying to buy a photo book I did on iphoto. I live in swtizerland. When I want to order the book, on shipping information It comes as default "United Kingdom", Is there a way I can change this into " Switzerland" Thanks

  • Exploding Pics

    First post to this forum and I haven't looked for a way to search it, so if I'm asking a common question . . .. When I now double click a photo to enlarge it, it explodes. There is a pause and then a black screen with a gray-white circle in the middl