avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\username\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x6a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x6a
아두이노 나노를 처음 샀을 때 위와 같은 에러가 뜨면서 코드 업로드가 안되는 경우가 있다. 이럴 경우, 아두이노 IDE에서 설정을 바꿔주거나 아두이노 나노의 부트로더를 업데이트해줘야 한다.
-
아두이노 IDE의 설정을 변경하는 방법
Arduino IDE에서 설정 변경 툴 > 프로세서 > ATmega328P (Old Bootloader) 선택하면 정상적으로 업로딩된다.
-
아두이노 나노의 부트로더를 업데이트하는 방법(아두이노 UNO 필요)
아두이노 나노의 ICSP 헤더(USB 단자 반대편에 있는 6개의 핀)을 아두이노 Uno에 연결해 업로드 해야한다.
출처 www.arduino.cc/en/Tutorial/ArduinoISP 출처 www.arduino.cc/en/Tutorial/ArduinoISP 아두이노 Uno와 아두이노 Nano를 위와 같이 연결해준다.
Arduino IDE에서 ArduinoISP 예제를 선택한다 보드, 포트, 프로그래머 부분 확인 보드, 포트, 프로그래머 부분이 제대로 되어있는지 확인 후 업로드한다.
보드, 프로그래머 변경 보드를 Arduino Nano로, 프로그래머를 Arduino as ISP로 변경한다. (ArduinoISP가 아니다!!) 그 후 부트로더 굽기를 클릭한다.
그런 후, 아두이노 Uno를 분리한 후 연결한 선을 다 뽑은 다음에 Nano를 연결해보자. 프로그래머는 다시 AVRISP mkII로 변경한 후, 포트를 맞춰주고 업로드해보자. (Old Bootloader를 선택하지 않아도 정상적으로 업로드되야한다)
끝
'프로그래밍 > 아두이노' 카테고리의 다른 글
ESP32를 사용하여 블루투스 HID(키보드/마우스/게임패드) 인식 (1) | 2020.07.19 |
---|---|
WeMos ESP32 WiFi&Bluetooth Battery 호환보드 (0) | 2020.07.10 |
아두이노로 ESP-01(ESP8266-01) WiFi 모듈 펌웨어 업그레이드 (0) | 2020.05.21 |
아두이노 조이스틱 컨트롤 (0) | 2020.05.13 |
아두이노 EEPROM에 구조체 저장 (0) | 2020.05.11 |