avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

已回答

I have this error but I don´t know how to solve it. 

I put on the platformio.ini this:

[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
upload_protocol = custom
upload_port = /dev/ttyUSB*
upload_flags =
   -C
; use "tool-avrdude-megaavr" for the atmelmegaavr platform
   $PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
   -p
   atmega2560
   -c
   usbtiny
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

0

Hi! Please check out this StackOverflow answer: https://stackoverflow.com/a/32944999 

0

请先登录再写评论。