platform-atmelavr icon indicating copy to clipboard operation
platform-atmelavr copied to clipboard

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

Open Madour opened this issue 4 years ago • 0 comments

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

Madour avatar Dec 10 '21 20:12 Madour