Menu

#22 avrdude executable can not be found

v2.2
closed
Behavior (41)
5
2012-07-07
2008-07-05
Anonymous
No

After installing and setting up the latest version of your plugin I get the following error message when I try to use it.


Cannot run AVRDude executable. Please check the AVR path preferences.
Cannot run program "C:\WinAVR\bin\avrdude" (in directory ""): CreateProcess error=267, Der Verzeichnisname ist ungültig


See screenshot.

Commandline capture:

Launching C:\WinAVR\bin\avrdude -pm169 -cstk500v2 -PCOM1 "-Uflash:w:E:\PROJEKTE\Intruder_Detection\Intruder Detection\binary\main.hex:a"
Output:

The plugin version 2.1.1 works just fine with avrdude.

Discussion

  • Nobody/Anonymous

    Screenshot error message

     
  • Thomas Holland

    Thomas Holland - 2008-07-07

    Logged In: YES
    user_id=1542541
    Originator: NO

    Hi,

    I assume that you checked that "C:\WinAVR\bin\avrdude" is the correct path to the avrdude executable. In this case the problem seems to be that the working directory is not set correctly by the plugin. That's the "(in directory "")" in your output which should be something like "(in directory "[your workspace][your project][config name e.g. Debug]")".

    I cannot reproduce this bug, so I need some more information to trace this down:

    • What Eclipse version are you using? 3.3 (Europa) or 3.4 (Ganymede)?

    • How did you start the upload: with the toolbar button, from the AVR main menu, from the project context menu or with the keyboard shortcut?

    • If you create a new project, do you get the same error?

    Also the following might be helpful to reproduce the bug:

    • the .project and .cproject files of the project you are trying to upload.

    • the Eclipse error log (Help -> About Eclipse Platform -> Configuration Details -> View Error Log)

    You can either attach these files to this bug report or send them to me directly (thomas@innot.de - german OK).

    brgds

    Thomas

     
  • Nobody/Anonymous

    Logged In: NO

    Your requested informations:
    *
    avrdude path is verified and correct

    *
    Eclipse Platform
    Version: 3.3.2
    Build id: M20080221-1800

    *
    Tried all possible methods to start the upload to target. Error occurs with all start methods.

    *
    A new project in the same workspace produces the same error.

    *
    I tried the commandline from Eclipse console inside the XP command shell and it works just fine.

     
  • Thomas Holland

    Thomas Holland - 2008-07-07

    Logged In: YES
    user_id=1542541
    Originator: NO

    The reason for the error message was an invalid "Build directory" (Project -> Properties -> C/C++ Build).

    Added a descriptive error message to the plugin when the build directory is not valid.
    This is already in SVN (revision 548) and will be included in the next release.

     
  • Thomas Holland

    Thomas Holland - 2008-12-02

    Version 2.3 with the fix has been released.

     

Log in to post a comment.