Skip to content
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

KeyError: 'tool-avrdude' : fuses.py cannot find tool-avrdude #269

Closed
Madour opened this issue Dec 10, 2021 · 3 comments
Closed

KeyError: 'tool-avrdude' : fuses.py cannot find tool-avrdude #269

Madour opened this issue Dec 10, 2021 · 3 comments

Comments

@Madour
Copy link

Madour commented Dec 10, 2021

Hello, I am trying to burn a bootloader to my DigiSpark board (ATTINY85).

When running the following command : platformio.exe run --target bootloader --environment digispark-tiny, I get a KeyError : 'tool-avrdude'

The error comes from _packages.py file the self.packagesmember dictionary does not contain the key "tool-avrdude':

def get_package_spec(self, name, version=None):
        return PackageSpec(
            owner=self.packages[name].get("owner"),
            name=name,
            requirements=version or self.packages[name].get("version"),
        )

Which is called in fuse.py line 479:

        % join(env.PioPlatform().get_package_dir("tool-avrdude") or "", "avrdude.conf"),

I do have a tool-avrdude folder like C:\Users\UserName\.platformio\packages\tool-avrdude

Any help is welcome thanks

@MrSurly
Copy link

MrSurly commented Mar 25, 2023

@Madour: I just came across this problem myself (#306) -- did you ever find a solution?

@Madour
Copy link
Author

Madour commented Mar 25, 2023

Unfortunately not. In the end, I gave up as it was not very crucial for my project.

Did you fix the issue, or fond a workaround?

@MrSurly
Copy link

MrSurly commented Mar 25, 2023

pio pkg install -t tool-avrdude solved it for me. Evidently atmelmegaavr hard-codes this value somewhere, and if you're using a chip that doesn't required avrdude, it errors out. Installing the tool fixes that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants