My platform.ini hasn’t changed and was working fine, but now I get this error when I try to upload code to an atmega328 using a USBasp programmer:
avrdude: error at C:\Users\ricky.platformio\packages/tool-avrdude/avrdude.conf:421: syntax error
avrdude: error reading system wide configuration file “C:\Users\ricky.platformio\packages/tool-avrdude/avrdude.conf”
*** [upload] Error 1
the platform.ini looks like this:
[env:program_via_USBasp]
platform = atmelavr
board = nanoatmega328
framework = arduino
upload_protocol = custom
upload_port = usb
upload_flags =
-C
; use “tool-avrdude-megaavr” for the atmelmegaavr platform
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
usbasp
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
lib_deps =
nrf24/PCM@^1.2.3
lexus2k/ssd1306@^1.8.3
greiman/SdFat@^2.1.2
marcoschwartz/LiquidCrystal_I2C@^1.1.4
can someone help? this is a recent issue.
I also tried reinstalling the tools-avdude folder with the pio pkg install -g -t “tool-avrdude”