as of Dec 2023 I am still working on uploading code to an attiny84.
I tried various settings of the ini file:
From the docs:
[env:stk500v2]
platform = atmelavr
framework = arduino
board = attiny84
upload_protocol = custom
upload_flags =
-C
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
attiny84
-P
$UPLOAD_PORT
-c
stk500v2
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
Error:
avrdude: error at /Users/ruediheimlicher/.platformio/packages/tool/avrdude/avrdude.conf:422: syntax error
avrdude: error reading system wide configuration file “/Users/ruediheimlicher/.platformio/packages/tool-avrdude/avrdude.conf”
In the acrdude.conf file, lines 416 - 425:
# Overall avrdude defaults; suitable for ~/.config/avrdude/avrdude.rc
#
default_parallel = "/dev/parport0";
#default_serial = "/dev/ttyS0";
default_serial = "/dev/tty.0";
default_spi = "";
# default_bitclock = 2.5;
default_linuxgpio = "gpiochip0";
allow_subshells = no;
I tried to replace the serial port with the real port
/dev/tty.usbserial-AM0190V3
with same error
I also tried
upload_protocol = stk500v2
with same error
The setting
[env:H0_atmega328p]
platform = atmelavr
board = atmega328p
framework = arduino
upload_protocol = stk500v2
resulted in
RAM: [==== ] 42.4% (used 217 bytes from 512 bytes)
Flash: [=== ] 29.5% (used 2420 bytes from 8192 bytes)
================================================ [SUCCESS] Took 0.41 seconds ================================================
BUT: NOTHING WAS UPLOADED.
I then again used the upload command used in my old configuration from the Makefile in Xcode.
In Terminal:
avrdude -p t84 -c stk500v2 -P /dev/tty.usbserial-AM0190V3 -U flash:w:.pio/build/stk500v2/firmware.hex /firmware.hex
This uploaded the hex file without problems.
Working with ESP32- and Teensy-Boards works without problems
I wonder if the other avrdude.conf from Xcode in /usr/local/etc/ could make problems.
macos 12.5 MacBookPro M1