Загрузка новых скетчей на Sparkfun Arduino Pro Micro
- Войдите на сайт для отправки комментариев
Доброго времени суток, уважаемое сообщество!
Это моя первая попытка сделать что-то на Arduino.
На руках имеется Sparkfun Arduino Pro Micro v. 1.1, 5v/16MHz и желание сделать HID -- клавиатуру.
Может быть что-то делаю не так, наткнулся на проблему: есть две одинаковые платы, на обе успешно залился только первый скетч (на одной это Examples/Basics/Blink на другой -- HID мышь Examples/USB/Mouse/ButtonMouseControl). Установлена Arduino IDE 1.0.5+dfsg2-2 и Arduino Addon Files от Sparkfun. OS -- Ubuntu 14.14.
В настройках Arduino IDE:
Board: Sparkfun Pro Micro 5v/16MHz
Serial Port: /dev/ttyACM0
Описание проблемы: после перезагрузки платы (закорачиваю пинцетом pin-ы RST и GND) -- см. ниже log1, при повторной попитеке -- см. ниже log2, далее при попытке загрузить скетч -- вновь -- см. ниже log1, аж до следующей перезагрузки платы...
log1:
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /tmp/build7941315363645803289.tmp/neko_board.cpp -o /tmp/build7941315363645803289.tmp/neko_board.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/wiring.c -o /tmp/build7941315363645803289.tmp/wiring.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/avr-libc/realloc.c -o /tmp/build7941315363645803289.tmp/realloc.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/avr-libc/malloc.c -o /tmp/build7941315363645803289.tmp/malloc.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/wiring_digital.c -o /tmp/build7941315363645803289.tmp/wiring_digital.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/WInterrupts.c -o /tmp/build7941315363645803289.tmp/WInterrupts.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/wiring_shift.c -o /tmp/build7941315363645803289.tmp/wiring_shift.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/wiring_analog.c -o /tmp/build7941315363645803289.tmp/wiring_analog.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/wiring_pulse.c -o /tmp/build7941315363645803289.tmp/wiring_pulse.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/HID.cpp -o /tmp/build7941315363645803289.tmp/HID.cpp.o /usr/share/arduino/hardware/arduino/cores/arduino/HID.cpp: In member function ‘virtual size_t Keyboard_::write(uint8_t)’: /usr/share/arduino/hardware/arduino/cores/arduino/HID.cpp:514:10: warning: unused variable ‘r’ [-Wunused-variable] uint8_t r = release(c); // Keyup ^ /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/CDC.cpp -o /tmp/build7941315363645803289.tmp/CDC.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/Stream.cpp -o /tmp/build7941315363645803289.tmp/Stream.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/new.cpp -o /tmp/build7941315363645803289.tmp/new.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.cpp -o /tmp/build7941315363645803289.tmp/USBCore.cpp.o /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.cpp: In function ‘int USB_Send(u8, const void*, int)’: /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.cpp:278:5: warning: unused variable ‘zero’ [-Wunused-variable] u8 zero = ep & TRANSFER_ZERO; ^ In file included from /usr/share/arduino/hardware/arduino/cores/arduino/Platform.h:19:0, from /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.cpp:19: /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.cpp: In function ‘bool SendConfiguration(int)’: /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.h:285:91: warning: narrowing conversion of ‘interfaces’ from ‘int’ to ‘u8 {aka unsigned char}’ inside { } is ill-formed in C++11 [-Wnarrowing] { 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED, USB_CONFIG_POWER_MA(500) } ^ /usr/share/arduino/hardware/arduino/cores/arduino/USBCore.cpp:455:28: note: in expansion of macro ‘D_CONFIG’ ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces); ^ /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp -o /tmp/build7941315363645803289.tmp/HardwareSerial.cpp.o /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp: In function ‘void store_char(unsigned char, ring_buffer*)’: /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i != buffer->tail) { ^ /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp: In function ‘void __vector_25()’: /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:155:21: warning: unused variable ‘c’ [-Wunused-variable] unsigned char c = UDR1; ^ /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp: In member function ‘void HardwareSerial::begin(long unsigned int, byte)’: /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:370:11: warning: unused variable ‘current_config’ [-Wunused-variable] uint8_t current_config; ^ /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp: In member function ‘virtual size_t HardwareSerial::write(uint8_t)’: /usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:469:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (i == _tx_buffer->tail) ^ /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/WString.cpp -o /tmp/build7941315363645803289.tmp/WString.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/WMath.cpp -o /tmp/build7941315363645803289.tmp/WMath.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/Print.cpp -o /tmp/build7941315363645803289.tmp/Print.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/IPAddress.cpp -o /tmp/build7941315363645803289.tmp/IPAddress.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/Tone.cpp -o /tmp/build7941315363645803289.tmp/Tone.cpp.o /usr/share/arduino/hardware/arduino/cores/arduino/Tone.cpp:210:12: warning: #warning this may not be correct [-Wcpp] #warning this may not be correct ^ /usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /usr/share/arduino/hardware/arduino/cores/arduino/main.cpp -o /tmp/build7941315363645803289.tmp/main.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/realloc.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/malloc.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_digital.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/WInterrupts.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_shift.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_analog.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_pulse.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/HID.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/CDC.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/Stream.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/new.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/USBCore.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/HardwareSerial.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/WString.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/WMath.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/Print.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/IPAddress.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/Tone.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/main.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections -mmcu=atmega32u4 -o /tmp/build7941315363645803289.tmp/neko_board.cpp.elf /tmp/build7941315363645803289.tmp/neko_board.cpp.o /tmp/build7941315363645803289.tmp/core.a -L/tmp/build7941315363645803289.tmp -lm /usr/share/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 /tmp/build7941315363645803289.tmp/neko_board.cpp.elf /tmp/build7941315363645803289.tmp/neko_board.cpp.eep /usr/share/arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/build7941315363645803289.tmp/neko_board.cpp.elf /tmp/build7941315363645803289.tmp/neko_board.cpp.hex Binary sketch size: 5,878 bytes (of a 28,672 byte maximum) Forcing reset using 1200bps open/close on port /dev/ttyACM0 PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {} PORTS {/dev/ttyACM0, } / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload. at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:153) at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67) at processing.app.Sketch.upload(Sketch.java:1671) at processing.app.Sketch.exportApplet(Sketch.java:1627) at processing.app.Sketch.exportApplet(Sketch.java:1599) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380) at java.lang.Thread.run(Thread.java:744)
log2:
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega32u4 -DF_CPU=16000000L -MMD -DUSB_VID=0x1B4F -DUSB_PID=0x9206 -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/yuriy/sketchbook/hardware/SF32u4_boards/variants/promicro /tmp/build7941315363645803289.tmp/neko_board.cpp -o /tmp/build7941315363645803289.tmp/neko_board.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/wiring.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/realloc.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/malloc.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/wiring_digital.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/WInterrupts.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/wiring_shift.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/wiring_analog.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/wiring_pulse.c.o Using previously compiled: /tmp/build7941315363645803289.tmp/HID.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/CDC.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/Stream.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/new.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/USBCore.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/HardwareSerial.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/WString.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/WMath.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/Print.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/IPAddress.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/Tone.cpp.o Using previously compiled: /tmp/build7941315363645803289.tmp/main.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/realloc.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/malloc.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_digital.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/WInterrupts.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_shift.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_analog.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/wiring_pulse.c.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/HID.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/CDC.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/Stream.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/new.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/USBCore.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/HardwareSerial.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/WString.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/WMath.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/Print.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/IPAddress.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/Tone.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-ar rcs /tmp/build7941315363645803289.tmp/core.a /tmp/build7941315363645803289.tmp/main.cpp.o /usr/share/arduino/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections -mmcu=atmega32u4 -o /tmp/build7941315363645803289.tmp/neko_board.cpp.elf /tmp/build7941315363645803289.tmp/neko_board.cpp.o /tmp/build7941315363645803289.tmp/core.a -L/tmp/build7941315363645803289.tmp -lm /usr/share/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 /tmp/build7941315363645803289.tmp/neko_board.cpp.elf /tmp/build7941315363645803289.tmp/neko_board.cpp.eep /usr/share/arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/build7941315363645803289.tmp/neko_board.cpp.elf /tmp/build7941315363645803289.tmp/neko_board.cpp.hex Binary sketch size: 5,878 bytes (of a 28,672 byte maximum) PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {/dev/ttyACM0, } => {/dev/ttyACM0, } Found Leonardo upload port: /dev/ttyACM0 /usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/build7941315363645803289.tmp/neko_board.cpp.hex:i avrdude: Version 6.0.1, compiled on Oct 21 2013 at 15:55:32 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "/usr/share/arduino/hardware/tools/avrdude.conf" User configuration file is "/home/yuriy/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyACM0 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 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- 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: .avrdude: Send: . [1b] avrdude: Send: S [53] avrdude: Recv: H [48] avrdude: Recv: e [65] l [6c] l [6c] o [6f] [20] w [77] avrdude: Send: V [56] avrdude: Recv: H [48] e [65] avrdude: Send: v [76] avrdude: Recv: l [6c] avrdude: Recv: l [6c] avrdude: Send: p [70] avrdude: Recv: o [6f] Found programmer: Id = "Hello w"; type = o Software Version = H.e; Hardware Version = l.l avrdude: Send: a [61] avrdude: Recv: [20] avrdude: Send: b [62] avrdude: Recv: w [77] avrdude: error: buffered memory access not supported. Maybe it isn't a butterfly/AVR109 but a AVR910 device?
Вопрос заключается в том, как мне теперь залить какой-нибудь другой скетч на плату???.....
убунты под рукой нет
протоколы не помню конечно
тут под виндоверсией гораздо больше народу скачай попробуй виндоверсию с твое платой
но выглядит так что в менюшке твоей версии нет правильной твоей платы
а сейчас тщательно начали это проверять чтоб не убивать платы
ссылка твоя битая
спаркфан любит эксперементировать поэтому надо у него смотреть что там нестандартного от стандартных плат http://arduino.cc/en/Main/Products
других мысле нет
на моих жать резет надо сразу после компиляции
тогда компилятор готов шить и 10сек приблизительно ждет а платка как раз успевает перегрущзиться и принять
сам компилятор мои как видишь две версии надежно не может резет нажать
кстати а linux не успевает поднять после резета следующие по порядку порты /dev/ttyACM1 /dev/ttyACM2 ?
может под линуксом неправильно без аппаратного резета их шить
это теория
Спасибо за ответ!
Ссылка вроде должна быть рабочая. Ресет у Sparkfun чуть по-другому, как я понял, работает: нажатие -- перезагрузка, двойное нажатие -- ожидание 8 сек загрузчика и потом загрузка. Который режим правильно и какой порядок прошивки -- не знаю, ибо нуб. Первый скетч записался просто по Upload в Arduino IDE.
На второй плате (mouse HID) заметил другой лог ошибки:
В менюшке плата появляется после установки Additional Files от Sparkfun.
Ссылка вроде должна быть рабочая. Ресет у Sparkfun чуть по-другому, как я понял, работает: нажатие -- перезагрузка, двойное нажатие -- ожидание 8 сек загрузчика и потом загрузка. Который режим правильно и какой порядок прошивки -- не знаю, ибо нуб. Первый скетч записался просто по Upload в Arduino IDE.
не нуб
смотри на мое фото это официальные платы
о твоих только сам спаркфан знает
под виндой компилятор после компиляции ожидает 10 секунд ответа от платы
так что спаркфановские 8 секунд наверно очень даже правильные
мелкие платы вообще фигово шьются
но у вас вроде usb сразу распаян и вроде резет жать в принципе не надо
сама IDE прекрансно должна видеть
а что мешает на винде поднять компилятор и прошить убедится как основная масса делает
а когда поймете есть ли отличия на менее распростарнненном linux продолжать
пляяять только что хотел замерить секунды и не посмтрел что реальный станок подключен сгавнял станок
уф
хорошо что еще не забыл как ардуинами пользоваться
прошил по новому
решил секунды посчитать
компилятор под виндой если нераспознается правильно верися ардуины ждет !!! 60 секунд !!!
матерится таким кодом например
если распознана шьет мгновенно
максимум 100килобайт прошивки занимет 30 секунд времени
Спасибо!
Проверил -- под вендой всё работает. Даже свой код сходу запустил =)
Для этого понадобилось:
- поставить Arduino Addon Files от Sparkfun и драйвер от платки, чтобы распознавалась как виртуальный COM-порт;
- в настройках драйвера после каждого переподключения отключать поддержку FIFO.
Вцелом, работать можно... Но кодить под вендой неудобно, а перезагружаться на каждую итерацию -- мучительно. Может есть идеи что сделать с виртуальным линукс-устройством порта?
да уж спаркфан как всегда в с воем духе
а может да ну его
купить стандартную arduino uno
не леонарды фигнярды дуалрды мдкарды а именно прародителя можно и последнуу нонче версию R3
и начать заниматься тем что интересно
а не согласованиями мучениями
а уж потом и только один разок можно поплясать с бубном
вон у меня куча вариантов плат а код тестирую на стандарной
по твоей же ссылке человек пишет
I couldnt agree more. I think I am going to hold off on purchasing this item now.
I was going to grab this board in lue of the fact that almost every other arduino board on this site is not being sold now. :(
Thanks for your information.
ничерта не продается здесь
sparkfun понимаешь-ли дорого и какие-то нестыковки сходу с официальной технологией
говоришь одна платка на ура шьется
а только вторая что-то не слушается?
непонятно
Судя по фото - это у Вас ProMini, и, соответственно, в avrdude устройство будет иметь другой код... http://inet-deal.mpa.ru/articles/pro_mini_cp2102.html - у меня шилось с ключом m328p под Убунтой 12.04. С портом проблем нет, кроме совместимости по скорости. Т.е., после смены бутлоадера на optiboot - скорость порта у меня в конфиге для ProMini выставлена на 115200 - несколько штук перешил, все работает.
невнимательно читаем
у меня проблем нет
я решаю чужие проблемы
у автора топика спаркфан с готовым юсб один из двух чудит
проблемы уже нет