Page 1 of 4

USBserial don't works - what's wrong?

Posted: Wed Jan 11, 2017 3:37 pm
by vde
MapleMini clone, bootloader works fine - but when control switches to application (even Bootloader Updater) host gets error:
bootloader's log

Code: Select all

[4409331.689199] usb 4-1.6.2: new full-speed USB device number 97 using ehci-pci
[4409331.775147] usb 4-1.6.2: New USB device found, idVendor=1eaf, idProduct=0003
[4409331.775151] usb 4-1.6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[4409331.775152] usb 4-1.6.2: Product: Maple 003
[4409331.775154] usb 4-1.6.2: Manufacturer: LeafLabs
[4409331.775155] usb 4-1.6.2: SerialNumber: LLM 003
[4409334.581412] usb 4-1.6.2: USB disconnect, device number 97
SerialUSB log

Code: Select all

[4409334.747784] usb 4-1.6.2: new full-speed USB device number 98 using ehci-pci
[4409334.809755] usb 4-1.6.2: device descriptor read/64, error 18
[4409334.972605] usb 4-1.6.2: device descriptor read/64, error 18
[4409335.135477] usb 4-1.6.2: new full-speed USB device number 99 using ehci-pci
[4409335.197440] usb 4-1.6.2: device descriptor read/64, error 18
[4409335.361300] usb 4-1.6.2: device descriptor read/64, error 18
[4409335.524198] usb 4-1.6.2: new full-speed USB device number 100 using ehci-pci
[4409335.925636] usb 4-1.6.2: device not accepting address 100, error -32
[4409335.988152] usb 4-1.6.2: new full-speed USB device number 101 using ehci-pci
[4409336.389275] usb 4-1.6.2: device not accepting address 101, error -32
[4409336.389507] usb 4-1.6-port2: unable to enumerate USB device
ps. it was compiled with -O0 or -Os without any difference. Library downloaded yesterday from Github

Re: USBserial don't works - what's wrong?

Posted: Wed Jan 11, 2017 7:19 pm
by victor_pv
Did you check the value of the pull up resistor in the bluepill board?
Should be 1k5, or as close as possible, other values may cause re-enumeration issues.
Other than that, may help to report what OS you are using, and perhaps testing with an older version of the core in case something has changed recently.

Re: USBserial don't works - what's wrong?

Posted: Wed Jan 11, 2017 8:19 pm
by stevestrong
I assume you are on a Linux machine.
I think your Arduino IDE version is a bit old (1.6.2.).
Please try to use at least 1.6.9.

Re: USBserial don't works - what's wrong?

Posted: Wed Jan 11, 2017 10:31 pm
by vde
victor_pv wrote:Did you check the value of the pull up resistor in the bluepill board?
DFU mode works fine
stevestrong wrote:I think your Arduino IDE version is a bit old (1.6.2.).
You are wrong, this is Arduino 1.8.1

Re: USBserial don't works - what's wrong?

Posted: Thu Jan 12, 2017 3:48 am
by mrburnette
vde wrote:MapleMini clone, bootloader works fine - but when control switches to application (even Bootloader Updater) host gets error:
...
ps. it was compiled with -O0 or -Os without any difference. Library downloaded yesterday from Github
USBserial is 'embedded' automatically into the user-sketch... Bootloader doesnot control sketchbUSB. Therefore, you must select the board Maple Mini and the correct bootloader version from the ArduinoIDE dropdown.

Try my Blink and Count example code:

Code: Select all

/*
  BlinkNcount for Maple Mini by m. ray burnette
  Compiled on Linux Mint 17.8 64-bit
  Arduino 1.7.8 using Maple Mini Bootloader 2.0 tested on 20160217
    Sketch uses 14,092 bytes (11%) of program storage space. Maximum is 122,880 bytes.
    Global variables use 2,560 bytes of dynamic memory.
  Turns on an LED on for one second, then off for one second, repeatedly.
  Counts and displays the count on the attached serial monitor
  This example code is in the public domain.
 */
 
#define BOARD_LED_PIN PB1          // Maple Mini pin# 33
int n = 0;


void setup() {                
  // initialize the digital pin as an output.
  pinMode(BOARD_LED_PIN, OUTPUT);
  // Initialize virtual COM over USB on Maple Mini
  Serial.begin(9600);  // BAUD has no effect on USB serial: placeholder for physical UART
  // wait for serial monitor to be connected.
  while (!(Serial.isConnected() && (Serial.getDTR() || Serial.getRTS())))
  {
    digitalWrite(BOARD_LED_PIN,!digitalRead(BOARD_LED_PIN));// Turn the LED from off to on, or on to off
    delay(100);         // fast blink
  }
  Serial.println("Blink LED & count Demo");
}

void loop() {
  digitalWrite(33, HIGH);   // set the LED on
  delay(500);              // wait for a second
  digitalWrite(33, LOW);    // set the LED off
  Serial.print("Loop #: ");
  n++;
  Serial.println(n);
   
  delay(500);              // wait 
}

Re: USBserial don't works - what's wrong?

Posted: Thu Jan 12, 2017 7:05 am
by RogerClark
vde wrote:
You are wrong, this is Arduino 1.8.1
OMG.

Arduino.cc seem to be doing a new version of the IDE about every 3 weeks
(I looked on Github and the Tag for 1.8.0 was only 22 days ago, and the change to 1.8.1 was 3 days ago)

Updated at this level of frequency are a problem for us, as we need to do a basic re-test every time they bring out a new version.

I've no idea whether 1.8.1 has any issues for us, as I wasn't even aware it had been released.
(I'm on the IDE developers mailing list but they don't seem to send out notifications of a new release though that channel)

Re: USBserial don't works - what's wrong?

Posted: Thu Jan 12, 2017 7:43 am
by vde
mrburnette wrote:Therefore, you must select the board Maple Mini and the correct bootloader version from the ArduinoIDE dropdown.
Thanks, I know :) As you can see from logs, device tries to enumerate so SerialUSB is successfully linked
RogerClark wrote:Arduino.cc seem to be doing a new version of the IDE about every 3 weeks
Not a problem, also tested with 1.6.12 - the same results. I can test with any version but in general Arduino IDE has no effect on the outcome because all work is done by GCC (4_9-2014q4).

PS. I have ST-link and Eclipse so can debug STM32 - but USB issues are very hard to debug :(

Re: USBserial don't works - what's wrong?

Posted: Thu Jan 12, 2017 8:03 am
by stevestrong
Can you post the compiler verbose output by building the blink sketch? Maybe we can find out some issues from there.
The serial USB should be defined and compiled when the "STM32duino bootloader" is selected in IDE as upload option, otherwise is not sure.

Re: USBserial don't works - what's wrong?

Posted: Thu Jan 12, 2017 8:10 am
by vde
my logs are similar to logs viewtopic.php?t=1032 - but now "volatile" present and moreover I build with -O0 to exclude optimozer's issues

Re: USBserial don't works - what's wrong?

Posted: Thu Jan 12, 2017 8:19 am
by vde
stevestrong wrote:Can you post the compiler verbose output by building the blink sketch? Maybe we can find out some issues from there.
Ok, but I do not see any sense in it. And not blink but "bootloader updater".

Code: Select all

/usr/share/arduino-1.8.1/arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino-1.8.1/hardware -hardware /home/dmitry/.arduino15/packages -tools /usr/share/arduino-1.8.1/tools-builder -tools /usr/share/arduino-1.8.1/hardware/tools/avr -tools /home/dmitry/.arduino15/packages -built-in-libraries /usr/share/arduino-1.8.1/libraries -libraries /home/dmitry/Arduino/libraries -fqbn=Arduino_STM32:STM32F1:mapleMini:bootloader_version=original,cpu_speed=speed_72mhz -ide-version=10801 -build-path /tmp/arduino_build_878543 -warnings=more -prefs=build.warn_data_percentage=75 -verbose /usr/src/quad-copter/maple_mini_bootloaer_updater/maple_mini_bootloaer_updater.ino
/usr/share/arduino-1.8.1/arduino-builder -compile -logger=machine -hardware /usr/share/arduino-1.8.1/hardware -hardware /home/dmitry/.arduino15/packages -tools /usr/share/arduino-1.8.1/tools-builder -tools /usr/share/arduino-1.8.1/hardware/tools/avr -tools /home/dmitry/.arduino15/packages -built-in-libraries /usr/share/arduino-1.8.1/libraries -libraries /home/dmitry/Arduino/libraries -fqbn=Arduino_STM32:STM32F1:mapleMini:bootloader_version=original,cpu_speed=speed_72mhz -ide-version=10801 -build-path /tmp/arduino_build_878543 -warnings=more -prefs=build.warn_data_percentage=75 -verbose /usr/src/quad-copter/maple_mini_bootloaer_updater/maple_mini_bootloaer_updater.ino
Using board 'mapleMini' from platform in folder: /usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1
Using core 'maple' from platform in folder: /usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1
Detecting libraries used...
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE  -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10801 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1 "-std=gnu++0x" "-I/home/dmitry/Arduino/libraries" "-I./libraries" -DCONFIG_HAL_BOARD=HAL_BOARD_VRBRAIN -DCONFIG_ARCH_BOARD_VRBRAIN_V45 -include /home/dmitry/Arduino/libraries/defs.h -fsingle-precision-constant -fno-builtin-printf -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math -funsafe-math-optimizations -O0  -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/include" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/stm32f1/include"                                                           "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/stm32f1" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/usb_lib" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/cores/maple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/variants/maple_mini" "/tmp/arduino_build_878543/sketch/maple_mini_bootloaer_updater.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE  -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10801 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1 "-std=gnu++0x" "-I/home/dmitry/Arduino/libraries" "-I./libraries" -DCONFIG_HAL_BOARD=HAL_BOARD_VRBRAIN -DCONFIG_ARCH_BOARD_VRBRAIN_V45 -include /home/dmitry/Arduino/libraries/defs.h -fsingle-precision-constant -fno-builtin-printf -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math -funsafe-math-optimizations -O0  -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/include" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/stm32f1/include"                                                           "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/stm32f1" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/usb_lib" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/cores/maple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/variants/maple_mini" "/tmp/arduino_build_878543/sketch/maple_mini_bootloaer_updater.ino.cpp" -o "/tmp/arduino_build_878543/preproc/ctags_target_for_gcc_minus_e.cpp"
"/usr/share/arduino-1.8.1/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_878543/preproc/ctags_target_for_gcc_minus_e.cpp"
Компиляция скетча...
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-g++" -c -g -Os -Wall -DDEBUG_LEVEL=DEBUG_FAULT -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10801 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1 "-std=gnu++0x" "-I/home/dmitry/Arduino/libraries" "-I./libraries" -DCONFIG_HAL_BOARD=HAL_BOARD_VRBRAIN -DCONFIG_ARCH_BOARD_VRBRAIN_V45 -include /home/dmitry/Arduino/libraries/defs.h -fsingle-precision-constant -fno-builtin-printf -fassociative-math -freciprocal-math -fno-signed-zeros -fno-trapping-math -funsafe-math-optimizations -O0  -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/include" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/stm32f1/include"                                                           "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/stm32f1" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/usb_lib" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/cores/maple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/variants/maple_mini" "/tmp/arduino_build_878543/sketch/maple_mini_bootloaer_updater.ino.cpp" -o "/tmp/arduino_build_878543/sketch/maple_mini_bootloaer_updater.ino.cpp.o"
Compiling libraries...
Compiling core...
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish/start.S.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish/start_c.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish/syscalls.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/board.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish/boards.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish/boards_setup.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/exc.S.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/stm32f1/performance/isrs.S.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/stm32f1/performance/vector_table.S.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/hooks.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/itoa.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/avr/dtostrf.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/adc.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/adc_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/bkp_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/dac.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/dma.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/dma_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/exti.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/exti_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/flash.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/fsmc_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/gpio.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/gpio_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/i2c.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/i2c_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/iwdg.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/nvic.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/pwr.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/rcc.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/rcc_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/spi.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/spi_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/systick.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/timer.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/timer_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usart.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usart_f1.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usart_private.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/util.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usb/stm32f1/usb.c.o
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-gcc" -c -g -Os -Wall -DDEBUG_LEVEL=DEBUG_FAULT -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_maple_mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10801 -DARDUINO_MAPLE_MINI -DARDUINO_ARCH_STM32F1   -DMCU_STM32F103CB -DSERIAL_USB  -mthumb  -march=armv7-m -D__STM32F1__ "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/include" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/stm32f1/include"                                                           "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/stm32f1" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/usb_lib" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/cores/maple" "-I/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/variants/maple_mini" "/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/cores/maple/libmaple/usb/stm32f1/usb_cdcacm.c" -o "/tmp/arduino_build_878543/core/libmaple/usb/stm32f1/usb_cdcacm.c.o"
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usb/stm32f1/usb_reg_map.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_core.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_init.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_mem.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_regs.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/stm32f1/util_hooks.c.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/HardwareSerial.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/HardwareTimer.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/IPAddress.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/Print.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/Stream.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/WString.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/cxxabi-compat.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/ext_interrupts.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/main.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/new.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/pwm.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/tone.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/usb_serial.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish_analog.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish_digital.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish_math.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish_shift.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/wirish_time.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/stm32f1/wiring_pulse_f1.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/stm32f1/wirish_debug.cpp.o
Используем предварительно скомпилированный файл: /tmp/arduino_build_878543/core/stm32f1/wirish_digital_f1.cpp.o
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/exc.S.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/stm32f1/performance/isrs.S.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/stm32f1/performance/vector_table.S.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/hooks.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/itoa.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/avr/dtostrf.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/adc.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/adc_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/bkp_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/dac.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/dma.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/dma_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/exti.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/exti_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/flash.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/fsmc_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/gpio.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/gpio_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/i2c.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/i2c_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/iwdg.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/nvic.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/pwr.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/rcc.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/rcc_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/spi.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/spi_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/systick.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/timer.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/timer_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usart.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usart_f1.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usart_private.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/util.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/stm32f1/usb.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/stm32f1/usb_cdcacm.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/stm32f1/usb_reg_map.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_core.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_init.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_mem.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/libmaple/usb/usb_lib/usb_regs.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/stm32f1/util_hooks.c.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/HardwareSerial.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/HardwareTimer.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/IPAddress.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/Print.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/Stream.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/WString.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/cxxabi-compat.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/ext_interrupts.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/main.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/new.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/pwm.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/tone.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/usb_serial.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/wirish_analog.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/wirish_digital.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/wirish_math.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/wirish_shift.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/wirish_time.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/stm32f1/wiring_pulse_f1.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/stm32f1/wirish_debug.cpp.o"
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-ar" rcs  "/tmp/arduino_build_878543/core/core.a" "/tmp/arduino_build_878543/core/stm32f1/wirish_digital_f1.cpp.o"
Linking everything together...
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 "-T/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/variants/maple_mini/ld/flash.ld" "-Wl,-Map,/tmp/arduino_build_878543/maple_mini_bootloaer_updater.ino.map" "-L/usr/share/arduino-1.8.1/hardware/Arduino_STM32/STM32F1/variants/maple_mini/ld" -o "/tmp/arduino_build_878543/maple_mini_bootloaer_updater.ino.elf" "-L/tmp/arduino_build_878543" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "/tmp/arduino_build_878543/sketch/maple_mini_bootloaer_updater.ino.cpp.o" "/tmp/arduino_build_878543/core/wirish/start.S.o" "/tmp/arduino_build_878543/core/wirish/start_c.c.o" "/tmp/arduino_build_878543/core/wirish/syscalls.c.o" "/tmp/arduino_build_878543/core/board.cpp.o" "/tmp/arduino_build_878543/core/wirish/boards.cpp.o" "/tmp/arduino_build_878543/core/wirish/boards_setup.cpp.o" "/tmp/arduino_build_878543/core/core.a" -Wl,--end-group
"/home/dmitry/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/share/bin/arm-none-eabi-objcopy" -O binary  "/tmp/arduino_build_878543/maple_mini_bootloaer_updater.ino.elf" "/tmp/arduino_build_878543/maple_mini_bootloaer_updater.ino.bin"
Скетч использует 27188 байт (24%) памяти устройства. Всего доступно 110592 байт.
Глобальные переменные используют 2896 байт динамической памяти.