Hi everyone.
I've encountered the error shown above.
Info:
I've been using 2 Arduino-based controllers called Controllino MAXI.
They are based on The Mega 2560. In the past I've been able to connect to both of them through different ports by using the LINX interfaces.
However, recently I've only been able to connect to on of the controllers, and not the other.
The device manager recognizes them both as it has in the past, as Arduino Mega 2560 (image attached).
The Arduino IDE recognizes and allows uploads to COM6, but doesn't recognize any connection to COM3, giving the following message (verbose on):
Arduino: 1.8.12 (Windows 10), Board: "CONTROLLINO MAXI"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\gr\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\gr\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\gr\Documents\Arduino\libraries -fqbn=CONTROLLINO_Boards:avr:controllino_maxi -vid-pid=0000_0000 -ide-version=10812 -build-path C:\Users\gr\AppData\Local\Temp\58e9973bb6e2e908c6c199f5a9d39075.tmp\output -warnings=none -build-cache C:\Users\gr\AppData\Local\Temp\arduino_cache_972135 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-4.9.2-atmel3.5.3-arduino2.path=C:\Users\gr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino8.path=C:\Users\gr\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\gr\AppData\Local\Temp\untitled1374694073.tmp\sketch_apr24b\sketch_apr24b.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\gr\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\gr\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\gr\Documents\Arduino\libraries -fqbn=CONTROLLINO_Boards:avr:controllino_maxi -vid-pid=0000_0000 -ide-version=10812 -build-path C:\Users\gr\AppData\Local\Temp\58e9973bb6e2e908c6c199f5a9d39075.tmp\output -warnings=none -build-cache C:\Users\gr\AppData\Local\Temp\arduino_cache_972135 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-4.9.2-atmel3.5.3-arduino2.path=C:\Users\gr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino8.path=C:\Users\gr\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\gr\AppData\Local\Temp\untitled1374694073.tmp\sketch_apr24b\sketch_apr24b.ino
Using board 'controllino_maxi' from platform in folder: C:\Users\gr\AppData\Local\Arduino15\packages\CONTROLLINO_Boards\hardware\avr\3.0.2
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"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=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\gr\\AppData\\Local\\Arduino15\\packages\\CONTROLLINO_Boards\\hardware\\avr\\3.0.2\\variants\\Controllino_maxi" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\sketch\\sketch_apr24b.ino.cpp" -o nul
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=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\gr\\AppData\\Local\\Arduino15\\packages\\CONTROLLINO_Boards\\hardware\\avr\\3.0.2\\variants\\Controllino_maxi" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\sketch\\sketch_apr24b.ino.cpp" -o "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\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\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"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=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\gr\\AppData\\Local\\Arduino15\\packages\\CONTROLLINO_Boards\\hardware\\avr\\3.0.2\\variants\\Controllino_maxi" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\sketch\\sketch_apr24b.ino.cpp" -o "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\sketch\\sketch_apr24b.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\gr\AppData\Local\Temp\arduino_cache_972135\core\core_CONTROLLINO_Boards_avr_controllino_maxi_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\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/sketch_apr24b.ino.elf" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output\\sketch\\sketch_apr24b.ino.cpp.o" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/..\\..\\arduino_cache_972135\\core\\core_CONTROLLINO_Boards_avr_controllino_maxi_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output" -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\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/sketch_apr24b.ino.elf" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/sketch_apr24b.ino.eep"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/sketch_apr24b.ino.elf" "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/sketch_apr24b.ino.hex"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\gr\\AppData\\Local\\Temp\\58e9973bb6e2e908c6c199f5a9d39075.tmp\\output/sketch_apr24b.ino.elf"
Sketch uses 656 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
An error occurred while uploading the sketch
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM3 -b115200 -D -Uflash:w:C:\Users\gr\AppData\Local\Temp\58e9973bb6e2e908c6c199f5a9d39075.tmp\output/sketch_apr24b.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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM3": The semaphore timeout period has expired.
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
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: The handle is invalid.
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: The handle is invalid.
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: The handle is invalid.
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: The handle is invalid.
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: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
the selected serial port
does not exist or your board is not connected
Also, I've tried re-uploading the LINX firwmare onto the device connected to COM3, but haven't managed to create a connection. There is often an icon next to COM3 when I try to upload the firmware (image attached). I think it means that the connection is busy, but I don't knwo what to do with that information.
I believe that the problem is an abrupt stop to a program disconnected the program and left my controller in some sort of VISA loop, but I haven't been able to reset it. I've tried restarting my PC multiple times, with the controller connected and disconnected, with an external power source and without one. I'm at the end of my wits with this problem.
Does anyone have any suggestions? Please let me know if any additional information would help you to help me.