Menu

#33 avrdude won't load - syntax error in config file

v1.0_(example)
open
nobody
None
1
2016-05-22
2016-05-20
Greg Lorinc
No

avrdude won't load, I get this on the console:

Launching /usr/local/CrossPack-AVR-20131216/bin/avrdude -carduino -P/dev/cu.wchusbserialfa140 -b9600 -pm16 -C/usr/local/Cellar/avrdude/6.3/etc/avrdude.conf 
Output:
avrdude: syntax error at /usr/local/Cellar/avrdude/6.3/etc/avrdude.conf:1062
avrdude finished

I use Eclipse Mars 4.5.2 on OS X (El Capitan).

Discussion

  • Michael Lipp

    Michael Lipp - 2016-05-22

    I doubt that this is related to the Eclipse plugin. If you copy-paste the command in a terminal you'll most likely get the same result. From the message it's quite ovious that your avrdude.conf is buggy (wherever you got that from). If I was you, I'd send this to he maintainer of the avrdude package that you are using.

     
  • Greg Lorinc

    Greg Lorinc - 2016-05-22

    avrdude works fine in the terminal/command line, that's why I suspect it has to do something with the plugin or Eclipse. Thanks anyway!

     
    • Michael Lipp

      Michael Lipp - 2016-05-22

      avrdude works fine in the terminal/command line, that's why I suspect it has to do something with the plugin or Eclipse. Thanks anyway!

      If it works in the terminal with exactly the command line from the
      eclipse message, it must be something in the environment. Move the
      avrdude binary to avrdude.bin and add a small shell script "avrude"
      instead that logs the environment before executing avrdude.bin.
      Something like (untested):

      1
      2
      3
      #!/bin/sh
      env > /tmp/invok.log
      exec "`dirname $0`"/avrdude.bin
      

      Compare the environment logged in /tmp/invok.log when executing from
      eclipse with the environment when executing from the terminal. (Assuming
      that this works in OS X; that's some kind of Unix, isn't it? ;-) )

       

      Last edit: Michael Lipp 2016-05-22

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.