Hello, I have an AVR dragon board and would like to use that to program my chip. I have the project working with a usbtiny that I have so I believe the project is setup properly except for the configuration for the programmer. I created a new environment for the dragon and this is what I came up with:
[env:bare_dragon] platform = atmelavr board_build.mcu = atmega328p board_build.f_cpu = 1000000L upload_protocol = dragon_isp upload_flags = -Pusb
when I try to run pio run -t upload it gives the error:
Error: Please specify
upload_port for environment or use global
If I specify the port (instead of upload_flags):
[env:bare_dragon] platform = atmelavr board_build.mcu = atmega328p board_build.f_cpu = 1000000L upload_protocol = dragon_isp upload_port = usb
I get this error:
Looking for upload port…
Use manually specified: usb
*** [upload] could not open port usb: [Errno 2] No such file or directory: ‘usb’
If I run avrdude directly, this works:
./avrdude -C ../avrdude.conf -c dragon_isp -p m328p -P usb -U flash:w:firmware.hex
I’m running PlatformIO IDE on Visual Studio on Mac OS 10.15.5 but have recreated the problem on the command line using pio version 4.3.4.
Is it possible to use the avr dragon board? If so, I would appreciate tips on the proper configuration.