Hello dear readers. I am a new member of the Arduino world and was trying to start my journey through all the tutorials. But it seems my computer really hates me. Its my verry first post in this forum so forgive me if i made some beginners mistakes.
Here are the facts and information i collected so far:
Arduino UNO R3 Kit Link: Starter Kit für Arduino UNO R3 mit über 200 Teilen
Installed latest Arduino IDE
Board auto-installed Driver on first connection
Using Windows 8.1 64bit
First i had a avrdude ser_open() can't set com-state for com3 error and went online troubleshooting. By trying other USB ports i realized that i had two USB3 ports on my computers rear side so i plugged in there. Great! No errors anymore. Done uploading.
But the code dont runs correct. I tried the basic blink example and i have no problems/errors uploading. But instead of blinking the led is just permanent on.
Installed Arduino IDE on my GF's Laptop and the code works. Led is blinking and everytime i change the delay-time it blinks faster/slower as intended. It all worked without a problem. Installed IDE, plugged board, uploaded blink, success..
Back on my computer, the board blinks bc it still has the code uploaded from my GF's Laptop. Then i upload the same blink code again but now the LED is just permanently ON.
Using board 'uno' from platform in folder: C:\Users\David\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\David\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Verwendete Bibliotheken erkennen...
"C:\\Users\\David\\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=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp" -o nul
Funktionsprototypen werden generiert...
"C:\\Users\\David\\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=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp" -o "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Users\\David\\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=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp" -o "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp.o"
Bibliotheken werden kompiliert...
Kern wird kompiliert...
Using precompiled core: C:\Users\David\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_uno_ef9d0690eb7676428f5dbc9d61b13d0a.a
Linking everything together...
"C:\\Users\\David\\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\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp.o" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/..\\arduino-core-cache\\core_arduino_avr_uno_ef9d0690eb7676428f5dbc9d61b13d0a.a" "-LC:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7" -lm
"C:\\Users\\David\\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\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.eep"
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.hex"
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf"
Der Sketch verwendet 924 Bytes (2%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
"C:\Users\David\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\David\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b115200 -D "-Uflash:w:C:\Users\David\AppData\Local\Temp\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.hex:i"
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\David\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\David\AppData\Local\Temp\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.hex"
avrdude: writing flash (924 bytes):
Writing | ################################################## | 100% 0.28s
avrdude: 924 bytes of flash written
avrdude done. Thank you.
Then i tried something. I took the part of the code responsible for turning the led on out of the picture (Just //deactivated the line of code):
void loop() {
//digitalWrite(LED_BUILTIN, HIGH);
//delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
And the LED was off. So i did this, to check if only the first line of the loop code is executed:
void loop() {
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
}
But no, the LED is permanent ON again.
I did the same with a external LED and it acts the same as the builtin LED.
void setup() {
pinMode (7,OUTPUT);
}
void loop() {
digitalWrite(7,HIGH);
delay(1000);
digitalWrite(7,LOW);
delay(1000);
}
So the pinMode (7,OUTPUT); / pinMode(LED_BUILTIN, OUTPUT); setup code works but the loop code dont..
I was scared that i messed up the bootloader so went back to my GF's Laptop and uploaded the Blink code again. Works fine so i am happy that the bootloader seems to be okay. The code for external LED works too.
What i did so far troubleshooting:
-Unplugged the board and used the Netadapter as powersource. Same behavior.
-Used different USB cable, same result.
-disabled Avira Antivirus and the firewall during IDE installation and uploading code.
-Reinstalled the IDE over 3 times with no different outcome
-Deleted the driver in my device manager and reinstalled the driver. But it is the same driver that
was used on GF's Laptop so i cant see why it should not work on my PC.
-LED's are flashing fast during uploading as normal
-Used reset button on board during all recommended stages to see if it helps. (Did not)
-Noticed that my Arduino IDE in fact can see the Arduino board when plugged in, but there are no
other ports listed. On GF's Laptop i can see at least two other ports that are not the board.
On my PC the IDE has no port listed until i plug in my board and it can see the Arduino UNO board
right away. Maybe unimportant detail, but maybe not? In all set up tutorials and videos i watched
the port list of the IDE always showed multiple unused ports. The device manager only shows my
board when plugged in, no other devices so i think it is what it is.
-Went through over 100 Ask/Answers threads to find a solution but either the problem was not matching my "symptoms" or the solution didn't work.
So here i am, 5 days after getting my Arduino starter Kid and about to just buy a new Laptop because of frustration..
If you have any other ideas, suggestions or you need additional information please let me know. Thank you so much for reading through!
!!!
While writing this, i forgot about my plugged in Arduino board and .... At some point the Led started blinking in 1 second increments as intended. I changed now the delay times to half a second, uploaded and the LED is permanent ON again like after every upload. Now i will wait with the board connected to check if the code starts working again later..
Update: One hour passed and the inbuilt LED is still constantly on. Idk if or how i triggered it the last time to finally work all i did was open the minimized IDE Window to copy the code. I tried to trigger it again by close/open the IDE again, do random stuff & reset the board. no success.
!!!