0
Arduino Mega 2560에 간단한 hello world 프로그램을 업로드하는 데 문제가 있습니다. IDE를 사용할 때 작동하는지 확인했습니다. 그러나 나는 IDE를 사용하고 싶지 않습니다. (나는 그런 식으로 작동하게하기 위해 chmod a+rw /dev/ttyACM0
해야만했다.)avrdude 오류 : out of sync
오류는 잘 알려져 있고 그물에 대해 많이 논의되어있다. IDE보다 makefile을 사용하고 Linux를 사용하기 때문에 지금까지 찾은 솔루션 중 아무 것도 나에게 적용되지 않았습니다. 메이크 내가 사용 :
ARDUINO_DIR = /usr/share/arduino
TARGET = test
ARDUINO_LIBS =
MCU = atmega2560
F_CPU = 16000000
ARDUINO_PORT = /dev/ttyACM0
AVRDUDE_ARD_BAUDRATE = 115200
AVRDUDE_ARD_PROGRAMMER = arduino
include /usr/share/arduino/Arduino.mk
를 소스는 잘 컴파일하지만 업로드-단계에서, avrdude는 불평 :
/usr/share/arduino/hardware/tools/avr/../avrdude -q -V -D -p atmega2560 -C /usr/share
/arduino/hardware/tools/avr/../avrdude.conf -c arduino -b 115200 -P /dev/ttyACM0 \
-U flash:w:build-uno/test.hex:i
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
나는이 플래그를 갖는 간단한 문제라고 생각합니다 세트 - 잘못 입혔다. 어떤 아이디어?