-
Notifications
You must be signed in to change notification settings - Fork 137
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
Programmer in .avrduderc not recognised #1551
Comments
Two things come to mind:
|
The only way I can reproduce this behaviour is by creating an, eg, empty file Here the excerpt from the manual (page 54 or thereabouts of git main): AVRDUDE first looks for a system wide configuration file in a platform dependent location. On Unix, this is usually /usr/local/etc/avrdude.conf, whilst on Windows it is usually in the same location as the executable file. The full name of this file can be |
I don't think this is what happened in my case. If I run
Also I cannot find the file in the location in the home folder you mentioned, nor anywhere else on the system:
To answer your previous question,
I can actually use version 7.1 for my purpose, but wanted to report my findings anyway. |
Ahh, of course! Notice you are running avrdude with sudo, ie, as user root. There may be a subtle difference in 7.2 and 7.1 as to how AVRDUDE figures out what the home directory is, eg, whether the ${HOME} variable is used or
|
I can indeed run as non-root. But that still results in the same problem. If I copy the
Like I said, I'm fine with using the previous version. But if I understand the documentation right it seems like the programmer is simply not recognised. Maybe something else also changed between versions that I'm not yet aware of. |
OK, I got it now and can reproduce it. The error message is wrong; the programmer was recognised but rejected owing to a missing
I'll raise a PR so that future versions will say in this case
Thanks, @j00st, for reporting and for helping in figuring out what was the problem. |
Ah check! That indeed fixes the issue. Glad we could sort this out, thanks for the active support! |
On version 7.2, it seems that custom defined programmer configurations in .avrduderc are not recognised by the avrdude command. This works however on version 7.1. I couldn't find any related change in the changelog.
avrdude
withlinuxspi
enabled;/root/.avrduderc
;avrdude
withsudo
(trying without didn't help);Content of the
.avrduderc
file:When running with 7.2:
Result with 7.1:
The text was updated successfully, but these errors were encountered: