정보나눔

오픈소스하드웨어 프로젝트에 대한 다양한 정보를 나누는 공간입니다.

아두이노 UNO 가 이상합니다 업로드가 진행되지 않습니다 좀 특이한것 같습니다.
곧상꺽 | 2018-01-08

아두이노:1.8.5 (Windows Store 1.8.10.0) (Windows 10), 보드:"Arduino/Genuino Uno"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\JHH\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\JHH\AppData\Local\Temp\arduino_build_583439 -warnings=all -build-cache C:\Users\JHH\AppData\Local\Temp\arduino_cache_126458 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\delete\GG\send\send.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\JHH\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\JHH\AppData\Local\Temp\arduino_build_583439 -warnings=all -build-cache C:\Users\JHH\AppData\Local\Temp\arduino_cache_126458 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\delete\GG\send\send.ino
Using board 'uno' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\standard" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp" -o "nul"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\standard" "-IC:\Users\JHH\Documents\Arduino\libraries\VirtualWire" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp" -o "nul"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\standard" "-IC:\Users\JHH\Documents\Arduino\libraries\VirtualWire" "-IC:\Users\JHH\Documents\Arduino\libraries\Bounce2" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp" -o "nul"
Using cached library dependencies for file: C:\Users\JHH\Documents\Arduino\libraries\VirtualWire\VirtualWire.cpp
Using cached library dependencies for file: C:\Users\JHH\Documents\Arduino\libraries\Bounce2\Bounce2.cpp
Generating function prototypes...
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\standard" "-IC:\Users\JHH\Documents\Arduino\libraries\VirtualWire" "-IC:\Users\JHH\Documents\Arduino\libraries\Bounce2" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp" -o "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\preproc\ctags_target_for_gcc_minus_e.cpp"
스케치를 컴파일 중…
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\variants\standard" "-IC:\Users\JHH\Documents\Arduino\libraries\VirtualWire" "-IC:\Users\JHH\Documents\Arduino\libraries\Bounce2" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp" -o "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp.o"
C:\delete\GG\send\send.ino: In function 'void loop()':

C:\delete\GG\send\send.ino:63:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

       sendMessage("1", "1");                            //紐낅졊 1 ?쟾?넚(on)

                           ^

C:\delete\GG\send\send.ino:63:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\delete\GG\send\send.ino:74:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

       sendMessage("1", "1");                            //紐낅졊 2?쟾?넚(off)

                           ^

C:\delete\GG\send\send.ino:74:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

Compiling libraries...
Compiling library "VirtualWire"
이전에 컴파일된 파일: C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\libraries\VirtualWire\VirtualWire.cpp.o 사용
Compiling library "Bounce2"
이전에 컴파일된 파일: C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\libraries\Bounce2\Bounce2.cpp.o 사용
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/send.ino.elf" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\sketch\send.ino.cpp.o" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\libraries\VirtualWire\VirtualWire.cpp.o" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439\libraries\Bounce2\Bounce2.cpp.o" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/..\arduino_cache_126458\core\core_arduino_avr_uno_a94ab6aaf61dfb93b4a8079c694a14c2.a" "-LC:\Users\JHH\AppData\Local\Temp\arduino_build_583439" -lm
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/send.ino.elf" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/send.ino.eep"
"C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom  "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/send.ino.elf" "C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/send.ino.hex"
"Bounce2.h"를 위한 복수개의 라이브러리가 발견되었습니다
 사용됨: C:\Users\JHH\Documents\Arduino\libraries\Bounce2
사용되지 않음: C:\Users\JHH\Documents\Arduino\libraries\Bounce2-master
폴더:C:\Users\JHH\Documents\Arduino\libraries\VirtualWire (legacy)의 라이브러리 VirtualWire 사용
라이브러리 Bounce2를 버전 2.1 폴더: C:\Users\JHH\Documents\Arduino\libraries\Bounce2  에서 사용
스케치는 프로그램 저장 공간 3920 바이트(12%)를 사용. 최대 32256 바이트.
전역 변수는 동적 메모리 316바이트(15%)를 사용, 1732바이트의 지역변수가 남음.  최대는 2048 바이트.
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\JHH\AppData\Local\Temp\arduino_build_583439/send.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr/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=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x68
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x68

avrdude done.  Thank you.

보드에 업로딩중에 문제 발생. 다음을  참고하세요. http://www.arduino.cc/en/Guide/Troubleshooting#upload

 

일단 오류 메세지 이고

증상이

 

처음에는 전원인가하면 OM RX L  3개의 부분에 계속 불이 들어왔습니다.

 

지금 문제있는 보드가 송신기라 RX 부분에 버튼을 누르면 불이 들어오는 구조인데 이상해서 보니까

 

동작을하지 않았습니다.

 

그래서 내부 코딩한게 깨진거나 날라갔나? 그럴수도 있나 ?해서 코딩한것을 그대로 다시 삽입하려고 하니까 안되서

 

찾아보니 포트가 문제있다 -> 확인하니 COM4 였고 문제없었습니다..

 

똑같은 보드를 그 포트 삽입해서 프로그램 주입시키니 잘되서 문제있는 보드가 이상하다는걸 깨달았습니다.

 

드라이버를 안깔았다?  일단 드라이버 재설치도 해보았고 마찬가지로 다른보드는 정상작동합니다.

 

그래서 타켓 보드 프로그램 보드 해서 블링크 예제? 그것을 삽입했더니 그  보드에 L이라는 곳에 불이 점등하기 시작합니다.

 

그래서 이방법으로 프로그램이 이식되네? 해서 다시 2가지 방법을 시도했습니다

 

1. 그대로 송신기 코드 삽입 -> 전과 같은 증상이 시작되었습니다 다른점은 RX 불이 계속 들어오는게 아니라 반응이 없습니다.

 

2. 문제있는 보드만 따로 연결해서 프로그램 삽입 ->아예 삽입 조차 안됩니다..

 

이거 저가 비록 부트로더 굽기를 실행하지 않았지만 문제가 있는거 같은데 부트로더를 구워볼까요>>>??? ㅜㅜ

 

이전글   |    의문의 "OrangeBoard WiFi와 조이스틱 센서 쉴드로 RC카 제어해보기" 코드... 2018-01-08
다음글   |    오렌지보드 업로드 오류 a/s필요할듯 2018-01-08