platformio / platform-atmelmegaavr

Atmel megaAVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelmegaavr
Apache License 2.0
28 stars 21 forks source link

Upload protocol "custom" still looks for AVRdude #54

Open bradanlane opened 1 year ago

bradanlane commented 1 year ago

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 commented 1 year ago

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.