Closed Thijxx closed 2 years ago
Another bug in this flow that I encountered is that the example misses the board setting.
Please specify
boardin
platformio.inito use with 'arduino' framework
Please check examples here https://docs.platformio.org/en/latest/platforms/atmelavr.html#upload-using-programmer
Please check examples here https://docs.platformio.org/en/latest/platforms/atmelavr.html#upload-using-programmer
You replied with a URL that I mentioned in my ticket as being the source of the problem.
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!
@robmaxtech, thanks for the confirmation.
@Thijxx, please reopen this issue if you still have any problems with PIO Core.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Linux
PlatformIO Version (
platformio --version
): 6.1.4Description of problem
Uploading using Arduino as ISP is broken.
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
results in the following error: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
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
:Additional info