question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

avrdude.conf No such file or directory

See original GitHub issue
  • PlatformIO Core. If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system: Linux

PlatformIO Version (platformio --version): 6.1.4

Description of problem

Uploading using Arduino as ISP is broken.

upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i results in the following error:

avrdude: can't open config file "/home/jenkins/workspace/avrdude/label/Ubuntu12.04x64/objdir/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file "/home/jenkins/workspace/avrdude/label/Ubuntu12.04x64/objdir/etc/avrdude.conf"

Looked in the docs: https://docs.platformio.org/en/latest/platforms/atmelavr.html#upload-using-programmer Not sure what the format should be but the example provided does not work, avrdude: invalid baud rate specified '-c' when you just copy/paste the config. May be another bug I don’t know.

When I fix the baud rate by just putting in the number, I get another error, this time it is: avrdude: error reading system wide configuration file " /home/thijs/.platformio/packages/tool-avrdude/avrdude.conf"

The path is correct, the file is readable, avrdude: can't open config file " /home/thijs/.platformio/packages/tool-avrdude/avrdude.conf": No such file or directory while the file is there and readable to User, Group and Other.

Steps to Reproduce

  1. Try to program ATTiny85 with Arduino as ISP

Actual Results

Error.

Expected Results

Like the Arduino IDE with the same code and setup: upload to programmer, done.

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:myenv]
platform = atmelavr
framework = arduino
board = attiny85
upload_protocol = custom
upload_flags = -P$UPLOAD_PORT -b$UPLOAD_SPEED
upload_port = /dev/ttyACM0
upload_speed = 19200
lib_deps = PowerNap
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i```

**Source file to reproduce issue:**
```cpp
Insert here...

Additional info

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
robmaxtechcommented, Nov 17, 2022

The example in the doc works fine; you should specify the avrdude.conf:

upload_flags =
    -C
    ; use "tool-avrdude-megaavr" for the atmelmegaavr platform
    ${platformio.packages_dir}/tool-avrdude/avrdude.conf

and the programmer

-c
<your programmer>

HTH!

0reactions
ivankravetscommented, Nov 18, 2022

@robmaxtech, thanks for the confirmation.

@Thijxx, please reopen this issue if you still have any problems with PIO Core.

Read more comments on GitHub >

github_iconTop Results From Across the Web

avrdude: can't open config file ... No such file or directory
Select File > Preferences from the Arduino IDE's menus. · Click the link on the line following "More preferences can be edited directly...
Read more >
1.8.8 Arduino IDE Windows Installer drops avrdude.conf in ...
This directory does not exist with a clean installation from the Windows installer. The workaround is to create the directory and copy the ......
Read more >
AVRDUDE.CONF Missing - Adafruit forums
Re: AVRDUDE.CONF Missing ... You can try a couple things First when you have the IDE closed delete the Arduino15 folder and empty...
Read more >
Uploading to Arduino Nano Every - avrdude can't open config ...
When I try to upload to the Arduino, I get the following error. avrdude: can't open config file "C:\Users\Jordan": No such file or...
Read more >
The uploader process failed - avrdude: can't open config file
Hi, This error appears to be caused by some invalid config in the Industuino core. This is an extract from the avr platform.txt...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found