Hi there,
I’m trying to upload a simple LED blink file to a Nano Every AT4809. 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 directory
avrdude: error reading system wide configuration file "C:\Users\Jordan"
I think this has to do with avrdude being configured incorrectly, but I’m not sure. I’ve unzipped the latest avrdude files into my program files, and added that directory to the path, but the issue persists.
Any ideas on what I’m doing wrong?
Thanks.
Edit: Figured out the issue. avrdude was not accepting spaces in my file path. I used this thread with this fix as a guide.
Essentially, in .\platformio\platforms\atmelmegaavr\builder\main.py, starting from line 75, change from:
UPLOADERFLAGS=[
"-p", "$BOARD_MCU", "-C",
'"%s"' % join(env.PioPlatform().get_package_dir(
"tool-avrdude-megaavr") or "", "avrdude.conf"),
"-c", "$UPLOAD_PROTOCOL"
],
To:
UPLOADERFLAGS=[
"-p", "$BOARD_MCU", "-C",
join(env.PioPlatform().get_package_dir(
"tool-avrdude-megaavr") or "", "avrdude.conf"),
"-c", "$UPLOAD_PROTOCOL"
],
And that seemed to fix it.