Go Down

Topic: Arduino Pro Mini can't upload Sketch (Read 576 times) previous topic - next topic

holger71

Hello, this is my first contct with Arduino!
I have a Arduino Pro Mini clone 3,3V and a CH340G USB to TTL Converter.
The Pro Mini have 2 red LED one blink slow the other lights constant.
Now i try to upload the Blink Sketch without success!
The CH340G have 6 Pin GND, RXD, TXD, 3V3, VCC, 5V.
I solder a bridge between 3v3 and VCC and conect GND, RXD, TXD and VCC to the Pro Mini.
The driver of CH340G is installed! My Notebook works wiht Windows 8.1, IDE 1.8.12
Under Tools selectet Pro Mini, ATmega 328P (3,3V 8MHz), COM 4, AVRISP mk2
i have tryed the Upload with pressing the Resetbutton and leav when upload biginns.
Also i have tryed by connecting Pin 13 (DTR) of the IC from CH340G to DTR on the Pro Mini.
I Always get a Fail

Arduino: 1.8.12 (Windows 8.1), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\sandra\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\sandra\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\sandra\Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega328 -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\sandra\AppData\Local\Temp\arduino_build_210342 -warnings=none -build-cache C:\Users\sandra\AppData\Local\Temp\arduino_cache_769554 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\sandra\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\sandra\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\sandra\Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega328 -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\sandra\AppData\Local\Temp\arduino_build_210342 -warnings=none -build-cache C:\Users\sandra\AppData\Local\Temp\arduino_cache_769554 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'pro' from platform in folder: C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Using core 'arduino' from platform in folder: C:\Users\sandra\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Detecting libraries used...
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\eightanaloginputs" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\eightanaloginputs" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\sketch\\Blink.ino.cpp" -o "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\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\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=8000000L -DARDUINO=10812 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\eightanaloginputs" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\sketch\\Blink.ino.cpp" -o "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\sandra\AppData\Local\Temp\arduino_cache_769554\core\core_arduino_avr_pro_cpu_8MHzatmega328_a80a7f6f51f4328d51aa0c5d65268f99.a
Linking everything together...
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/Blink.ino.elf" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342\\sketch\\Blink.ino.cpp.o" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/..\\arduino_cache_769554\\core\\core_arduino_avr_pro_cpu_8MHzatmega328_a80a7f6f51f4328d51aa0c5d65268f99.a" "-LC:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342" -lm
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/Blink.ino.elf" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/Blink.ino.eep"
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/Blink.ino.elf" "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/Blink.ino.hex"
"C:\\Users\\sandra\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\sandra\\AppData\\Local\\Temp\\arduino_build_210342/Blink.ino.elf"
Der Sketch verwendet 924 Bytes (3%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
avrdude: stk500_getsync(): can't communicate with device: resp=0xfc
Beim Hochladen des Sketches ist ein Fehler aufgetreten



markd833

Do you have an image of your CH340G or a link to where you bought it?

You need to have a signal called DTR on your CH340G board in order to automatically send your sketch to your Pro Mini.

If you don't have this signal, then you can still download your sketch manually.

With things connected as you have them, upload your sketch using the Arduino IDE as normal. Watch the status line near the bottom of the IDE - it will say "Compiling Sketch" with a progress bar on the right hand side. As soon as it says "Uploading", press and release the reset button on your Pro Mini. You may have to try this a few times until you get the hang of it.

Your sketch should then load onto your Pro Mini.

holger71

Pressing the Resetbutton does not work. i have tryed again!
And i try DTR fom Pin 13 conectet to DTR on the Pro Mini. But no succsess!

Here is the link to CH340G USB toTTL Adapter

https://www.makershop.de/module/kommunikation-module/ch340-usb/

markd833

Did you connect Tx on the Pro Mini to Tx on the CH340G, and Rx on the Pro Mini to Rx on the CH340G?

Try swapping the wires over so you have Tx to Rx.

You will still need to manually press the reset button if your DTR mid didn't work.

holger71

This i also have tryed. I think Tx to RX and RX to TX is the right connection. Because then i have a short bilnking of the blue TX and RX LED. In other connection there is no light from the TX and RX LED.

holger71

Now it works. The Reason was a defect Pro Mini Board!

Go Up