Hi Community,
after struggling days with this problem, I again arrived here.
I am playing around with thid HC-05 bluetooth module. My first goal would be to upload a sketch wireless via bluetooth. I have done these things :
-
At first, I followed the basic set up from Arduino With HC-05 Bluetooth Module in Slave Mode | Martyn Currey , as the attached image.
Then, I configured my Bluetooth module with AT-commands. Since I am using Mega 2560, I set the baud-rate of the module to 115200. -
Then I opened the bluetooth pannel and connected to my hc-05. It says that its paired. So far so good.
-
To test the connected hc-05, I changed the COM-port to the hc-05 COM.
-
Since I am just trying to test, I opened the basic blink example sketch and hit "upload".
-
The error message that I am getting is below :
Arduino: 1.8.7 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
...
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690\\sketch\\Blink.ino.cpp" -o "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690\\sketch\\Blink.ino.cpp" -o "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\joole\AppData\Local\Temp\arduino_cache_132043\core\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690/Blink.ino.elf" "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690\\sketch\\Blink.ino.cpp.o" "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690/..\\arduino_cache_132043\\core\\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690" -lm
"C:\\Program Files (x86)\\Arduino\\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\\joole\\AppData\\Local\\Temp\\arduino_build_785690/Blink.ino.elf" "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690/Blink.ino.eep"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690/Blink.ino.elf" "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690/Blink.ino.hex"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\joole\\AppData\\Local\\Temp\\arduino_build_785690/Blink.ino.elf"
Der Sketch verwendet 1460 Bytes (0%) des Programmspeicherplatzes. Das Maximum sind 253952 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 8183 Bytes für lokale Variablen verbleiben. Das Maximum sind 8192 Bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM8 -b115200 -D -Uflash:w:C:\Users\joole\AppData\Local\Temp\arduino_build_785690/Blink.ino.hex:i
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM8
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM8": Das Zeitlimit für die Semaphore wurde erreicht.
avrdude: ser_drain(): read error: Das Handle ist ungültig.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Das Handle ist ungültig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Das Handle ist ungültig.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
I would be really appreciate for any help.
