아두이노 Pro mini 보드에 FTDI 모듈을 이용해 업로드 할 때 아래와 같은 메시지 자주 보실겁니다.

avrdude stk500_getsync(): not in sync resp=0x00

보드 타입 선택이 잘못되었거나, COM 포트 선택이 잘못되었거나 부트로더에 문제가 있을 때 나타나기도 하지만… 많은 경우 FTDI 모듈에 DTR 핀 (auto reset 시켜주는 핀)이 없어서 수동으로 reset 을 해주지 않아서 발생합니다.

그럼 언제 reset 버튼을 눌러줘야 하는가? 실험을 해보니 대강 “컴파일” -> “업로드” 넘어가는 시점에 한번 눌러주면 됩니다. 근데 해외 포럼을 뒤지다보니 reset 버튼을 눌러주는 시점에 대한 보다 자세한 글이 있어 소개합니다.

avrdude stk500_getsync(): not in sync resp=0x00 <— 00 was my problem, i wasn’t pressing the reset button at the right time, i dont have an auto reset USB to Serial,, no DTR pin, so i was looking everywhere for the right reset method,some said keep holding it untill it shows upload, some said press once right before upload, nothing worked, but somewhere i found that if i turn on verbose output (file->preferences-.show verbose) then it shows

Using Port : \\.\COM14

Using Programmer : arduino

Overriding Baud Rate : 57600

avrdude: Send: 0 [30] [20]

avrdude: Send: 0 [30] [20] <—“NOW!!” press the reset once, and hard

avrdude: Send: 0 [30] [20]

because it only sends a few such lines and waits for reset, after that it gives a sync error

간단히 말해 아두이노 환경설정에서 컴파일, 업로드 메시지 자세하게 출력하게 설정해 두고 아래 메시지가 보이면 그 때 누르라는 얘기네요.

avrdude: Send: 0 [30] [20]

.