Leonardo ei toimi kahdella eri tavalla, ja kummallakaan en saa ohjelmaa Arduinon sisään Linukalla.
Olen siis dialout-ryhmässä, mutta siitä huolimatta ei toimi.
Ohjelmoin toisen Windowsilla, ja siinä pysyy /dev/ttyACM0, mutta Arduino Ide valittaa, että kortti on väärä. Kortti on merkitty Leonardoksi, joten siitä ei ole toimimattomuus kiinni.
Uudessa Leonardo:ssa kytkiessä sen koneeseen pysyy /dev/ttyACM0 hetken ajan laitelistassa, mutta häviää piakkoin, eikä suostu asentamaan ohjelmaa sisään.
Windows-konetta ei ole tällä hetkellä käytettävissä, enkä halua asentaa sitä koneelleni edes virtuaalisesti.
Toimiiko siis muilla Leonardo-pohjaiset Arduinot ?
Edit - Käyttikseni on Lubuntu 18.04 LTS päivitettynä.
Verbosella tulee seuraavaa näyttöön, pysyvällä ttyACM0:lla ...
-DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/USBCore.cpp -o /tmp/arduino_build_842024/core/USBCore.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WMath.cpp -o /tmp/arduino_build_842024/core/WMath.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/new.cpp -o /tmp/arduino_build_842024/core/new.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/abi.cpp -o /tmp/arduino_build_842024/core/abi.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o /tmp/arduino_build_842024/core/IPAddress.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Print.cpp -o /tmp/arduino_build_842024/core/Print.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o /tmp/arduino_build_842024/core/HardwareSerial3.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/main.cpp -o /tmp/arduino_build_842024/core/main.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp -o /tmp/arduino_build_842024/core/PluggableUSB.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WString.cpp -o /tmp/arduino_build_842024/core/WString.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/CDC.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/HardwareSerial.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/HardwareSerial0.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/HardwareSerial1.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/HardwareSerial2.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/HardwareSerial3.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/IPAddress.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/PluggableUSB.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/Print.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/Stream.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/Tone.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/USBCore.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/WInterrupts.c.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/WMath.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/WString.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/abi.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/hooks.c.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/main.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/new.cpp.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/wiring.c.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/wiring_analog.c.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/wiring_digital.c.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/wiring_pulse.S.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/wiring_pulse.c.o
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_842024/core/core.a /tmp/arduino_build_842024/core/wiring_shift.c.o
Archiving built core (caching) in: /tmp/arduino_cache_938332/core/core_arduino_avr_leonardo_f2644bd1d06de3e78d0a9349655460ca.a
Linking everything together...
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o /tmp/arduino_build_842024/Blink2.ino.elf /tmp/arduino_build_842024/sketch/Blink2.ino.cpp.o /tmp/arduino_build_842024/core/core.a -L/tmp/arduino_build_842024 -lm
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_842024/Blink2.ino.elf /tmp/arduino_build_842024/Blink2.ino.eep
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_842024/Blink2.ino.elf /tmp/arduino_build_842024/Blink2.ino.hex
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_842024/Blink2.ino.elf
Luonnos käyttää 4452 tavua (15%) ohjelmamuistia. Maksimi on 28672 tavua.
Globaalit muuttujat käyttävät 165 tavua (6%) dynaamista muistia, jättäen 2395 tavua paikallisille muuttujille. Maksimi on 2560 tavua.
Forcing reset using 1200bps open/close on port /dev/ttyACM1
PORTS {/dev/ttyACM1, /dev/ttyS0, } / {/dev/ttyS0, } => {}
PORTS {/dev/ttyS0, } / {/dev/ttyS0, } => {}
PORTS {/dev/ttyS0, } / {/dev/ttyACM1, /dev/ttyS0, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/bin/avrdude -C/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM1 -b57600 -D -Uflash:w:/tmp/arduino_build_842024/Blink2.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 "/home/sami/Lataukset/arduino/arduino-1.8.9-amd/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/sami/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM1
Using Programmer : avr109
Overriding Baud Rate : 57600
AVR Part : ATmega32U4
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 9000 9000 0x00 0x00
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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 : butterfly
Description : Atmel AppNote AVR109 Boot Loader
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | avrdude: butterfly_recv(): programmer is not responding
################################################## | 100% 5.00s
avrdude: Device signature = 0xff3f0d
avrdude: Expected signature for ATmega32U4 is 1E 95 87
Double check chip, or use -F to override this check.
avrdude done. Thank you.
Väärä mikrokontrolleri havaittu. Valitsiko okean levyn valikosta Työkalut -> Levy?