Skip to content

Upload protocol "custom" still looks for AVRdude #54

@bradanlane

Description

@bradanlane

platformio.ini has the following:

upload_protocol = custom
upload_port = COM3
upload_speed = 115200
upload_command = pymcuprog write -t uart -d attiny1616 -u $UPLOAD_PORT -c $UPLOAD_SPEED -f $SOURCE --erase --verify

a user has reported on Windows, hey had to force the installation of AVRdude, otherwise they got the following error:

Error: Processing avrcoding101 (platform: atmelmegaavr; board: ATtiny1616)
Verbose mode can be enabled via
- - verbose' option
KeyError: 'tool-avrdude'
File " /home/matteo/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py",line187:
env.SConscript ("$BUILD SCRIPT")
File "/home/matteo/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py",line597:
return SConscript(self.fs, *files, **subst kw)
File " /home/matte/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py",line285:
exec (compile (scriptdata, scriptname, 'exec'), call stack[-1] .globals)
File " /home/matteo/.platformio/platforms/atmelmegaavr/builder/main.py", line 77:
env.PioPlatform() .get package dir
File " /home/matteo/.platformio/penv/lib/python3.10/site-packages/platformio/platform/_packages.py",line 32:
pkg = self.get package (name)
File " /home/matteo/.platformio/penv/lib/python3.10/site-packages/platformio/platform/_packages.py",line29:
return self.pm.get package(spec or self.get package spec (name))
File " /home/matteo/.platformio/penv/lib/python3.10/site-packages/platformio/platform/packages.py",line21:
owner=self.packages [name].get ("owner"),
= [FAILED] Took 0.34 seconds

I assume there should be no reason AVRdude is required in this configuration using a custom upload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions