-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting fuses on Attiny fails due to spaces in path to avrdude #297
Comments
Same thing worked for me. I knew that main.py worked and copied from there but ended up with the same as you did (line 478). Was also mentioned in issue 184 |
Had the same issue with setting the fuses on an ATmega328PB with an atmel-ice. The fuses.py edit above worked. The error I received when running Set Fuses ...
If i set the fuses in the upload_flags, I didn't have an issue. Re-installed vscode and pio and a lot of other muckin around before I saw this. |
my platform.ini ...
|
I'm just wondering, does the provided solution work if only the single quotes are removed? |
I just gave it a try. All that's needed is to remove the single quotes. |
this issue appears to have popped back up again.
produces:
instead of:
this (presumably intended to be helpful) quirk of env.Replace() causes issues in fuses.py and bootloader.py. P.S. i was pointed towards this issue by @maxgerhardt over on the PIO forums. |
Hello,
I encountered an issue with the atmelavr platform - I could do the upload, but setting fuses failed - the path to avrdude.exe contained spaces and therefore it was not found, I found a similar issue here, regarding upload: #10
Looking at the change, I modified the corresponding location in fuses.py and it seems to work
removed partstrikethrough:FUSESUPLOADERFLAGS=[
"-p",
"$BOARD_MCU",
"-C",
'"%s"'%join(env.PioPlatform().get_package_dir("tool-avrdude") or "", "avrdude.conf"),Is this correct? Maybe it can be included officially then.
The text was updated successfully, but these errors were encountered: