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

Upload protocol "custom" still looks for AVRdude #54

Open
bradanlane opened this issue Feb 15, 2023 · 1 comment
Open

Upload protocol "custom" still looks for AVRdude #54

bradanlane opened this issue Feb 15, 2023 · 1 comment

Comments

@bradanlane
Copy link

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.

@bradanlane bradanlane changed the title Upload protocol "custom still looks for AVRdude Upload protocol "custom" still looks for AVRdude Feb 15, 2023
@bradanlane
Copy link
Author

The original issue was described by an enduser.
The problem appears to be related so recent update to platformio. My personal system upgraded this week and now I experience it.

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

1 participant