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
- 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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
The example in the doc works fine; you should specify the avrdude.conf:
and the programmer
HTH!
@robmaxtech, thanks for the confirmation.
@Thijxx, please reopen this issue if you still have any problems with PIO Core.