[Solved] Serial USB for Blue Pill board

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
User avatar
lsmod
Posts: 65
Joined: Mon Dec 24, 2018 4:36 pm
Location: Germany

Re: [Solved] Serial USB for Blue Pill board

Post by lsmod » Wed Jan 02, 2019 5:22 pm

It really worked only without the bootloader functionality.
I set the Arduino interface to Upload method: "STM32duino Bootloader" and tried to compile and upload my RTC program.

No reaction. :cry:

After reset the green LED flashes some times - that's all.
Connecting with putty as serial console shows in an endless loop:
Congratulations, you have installed the STM32duino bootloader
See https://github.com/rogerclarkmelbourne/ ... bootloader

For more information about Arduino on STM32
and http://stm32duinoforum.com/forum

User avatar
lsmod
Posts: 65
Joined: Mon Dec 24, 2018 4:36 pm
Location: Germany

Re: [Solved] Serial USB for Blue Pill board

Post by lsmod » Wed Jan 02, 2019 5:37 pm

Now i know how to get rid of the bootloader: Just flash again over the serial interface UART1.

So it will be interesting to go the other way, because the bootloader does not really solve my problem. :P
fredbox wrote:
Tue Jan 01, 2019 7:09 pm
I edited my post to show that you don't need to download anything special - it is already included in Roger's core.
In which folder did you drop the Roger's core that the libraries can be included?

Now something surprising:

I just compiled your example viewtopic.php?f=28&t=4474&start=30#p52042
with the magic #include

and it works for me too compiling with 17584 Bytes Flash and 3880 Bytes RAM.
After setting the jumper back my kernel can see

Code: Select all

[ 6959.078076] usb 1-6.1: new full-speed USB device number 27 using ehci-pci
[ 6959.174182] usb 1-6.1: New USB device found, idVendor=1eaf, idProduct=0024
[ 6959.174194] usb 1-6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6959.174200] usb 1-6.1: Product: Maple
[ 6959.174206] usb 1-6.1: Manufacturer: LeafLabs
[ 6959.174811] cdc_acm 1-6.1:1.0: ttyACM0: USB ACM device
and nice Terminal output over USB and /dev/ttyACM0 8-) like

Code: Select all

Counter: 939 - Hello World!
Counter: 940 - Hello World!
Counter: 941 - Hello World!
Counter: 942 - Hello World!
but when i check the compiler output i can see that Roger's library is not used!

Code: Select all

Compiling library "USBComposite"
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/MinSysex.c -o /tmp/arduino_build_141335/libraries/USBComposite/MinSysex.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_generic.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_generic.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_scsi_data.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_scsi_data.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_hid.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_hid.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_mass.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_mass.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_x360.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_x360.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_scsi.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_scsi.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_midi_device.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_midi_device.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_composite_serial.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_composite_serial.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_mass_mal.c -o /tmp/arduino_build_141335/libraries/USBComposite/usb_mass_mal.c.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/USBMassStorage.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/USBMassStorage.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/USBXBox360.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/USBXBox360.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/Mouse.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/Mouse.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/Keyboard.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/Keyboard.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/HIDReports.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/HIDReports.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/AbsMouse.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/AbsMouse.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/USBCompositeSerial.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/USBCompositeSerial.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/usb_setup.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/usb_setup.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/USBMIDI.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/USBMIDI.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/Consumer.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/Consumer.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/Joystick.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/Joystick.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/USBComposite.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/USBComposite.cpp.o
 ~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10808 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/stm32f1/include -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/stm32f1 -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple/usb/usb_lib -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/cores/maple -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/variants/generic_stm32f103c -I ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite  ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/libraries/USBComposite/USBHID.cpp -o /tmp/arduino_build_141335/libraries/USBComposite/USBHID.cpp.o
Everything has been taken from the path ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple !

So why all this stuff about Roger's core ? :shock:
Last edited by lsmod on Wed Jan 02, 2019 6:34 pm, edited 5 times in total.

User avatar
Rick Kimball
Posts: 1400
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: [Solved] Serial USB for Blue Pill board

Post by Rick Kimball » Wed Jan 02, 2019 6:19 pm

Here is a little sample I used with the composite serial that provides a reasonable approach to allow native USB serial output without a bootloader and using the builtin ROM serial uploader:

Code: Select all

/*
   composite_serial - bluepill composite serial device with reset support
   tested using "Serial" upload method which doesn't configure builtin usb serial
   This code allows you to leave the BOOT0 pin tied high and toggle the reset button to
   upload via the USART0 (PA9/PA10) on /dev/ttyUSB0, then connect to /dev/ttyACM0 
   with putty without having to mess with the BOOT0 pin during development.
   The USBCompositeSerial object normally doesn't toggle the PA12 pin.  
   This behaviour is bluepill specific. (proper bluepills only have a 1k5 pull up on PA12)
*/
#include 
#include 
USBCompositeSerial SerialUSB;
uint32_t counter = 0;
void setup()
{
  // toggle USBD+ (PA12 pin) to signal host to
  // reenumerate our USB device on reset press
  pinMode(PA12, OUTPUT_OPEN_DRAIN); // use external 1k5 resistor
  digitalWrite(PA12, LOW);  // force low to signal reset
  delay(50);
  digitalWrite(PA12, HIGH); // actually floats high, not driven
  SerialUSB.registerComponent();
  USBComposite.begin();
  delay(100);
}
void loop()
{
  // only output data if someone is listening
  if ( SerialUSB.isConnected() ) {
    SerialUSB << "Counter: " << counter << " - Hello World!\n";
  }
  counter++;
  delay(500);
}
-rick

User avatar
lsmod
Posts: 65
Joined: Mon Dec 24, 2018 4:36 pm
Location: Germany

Re: [Solved] Serial USB for Blue Pill board

Post by lsmod » Wed Jan 02, 2019 6:31 pm

What have i done wrong with the bootloader?
(Maybe there will be some cases where it will be useful ;) )

What is the really advantage of Roger's core and how it can be used?
(For USB it is not needed)

User avatar
Rick Kimball
Posts: 1400
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: [Solved] Serial USB for Blue Pill board

Post by Rick Kimball » Wed Jan 02, 2019 6:33 pm

lsmod wrote:
Wed Jan 02, 2019 5:37 pm
Everything has been taken from the path ~/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3/system/libmaple !

So why all this stuff about Roger's core ? :shock:
It seems to me that at some point you used "Dan Drown's" json file to install Roger's core. That installs "Dan Drown's version of Roger's core" in the .arduino15 directory and you must be selecting the boards from that one instead of the boards from "Roger's".

The easiest fix is exit Arduino IDE, delete your ~/.arduino15 directory. That will destroy any configured boards and preferences and get you back to the default Arduino configuration. Then just follow the instructions for installing Roger's core from github. Don't modify the boards.txt file.
-rick

User avatar
Rick Kimball
Posts: 1400
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: [Solved] Serial USB for Blue Pill board

Post by Rick Kimball » Wed Jan 02, 2019 6:35 pm

lsmod wrote:
Wed Jan 02, 2019 6:31 pm
What have i done wrong with the bootloader?
(Maybe there will be some cases where it will be useful ;) )

What is the really advantage of Roger's core and how it can be used?
(For USB it is not needed)
Dan Drown's version of Roger's core is a snapshot and changes the some of the config files.

If you install from github, you get the latest version of "Roger's core" and to update it you just exit the Arduino IDE change directories to ~/Arduino/hardware/Arduino_STM32 and do "git pull" to grab the latest changes.
-rick

User avatar
lsmod
Posts: 65
Joined: Mon Dec 24, 2018 4:36 pm
Location: Germany

Re: [Solved] Serial USB for Blue Pill board

Post by lsmod » Wed Jan 02, 2019 6:40 pm

Rick Kimball wrote:
Wed Jan 02, 2019 6:33 pm
It seems to me that at some point you used "Dan Drown's" json file to install Roger's core. That installs "Dan Drown's version of Roger's core" in the .arduino15 directory and you must be selecting the boards from that one instead of the boards from "Roger's".

The easiest fix is exit Arduino IDE, delete your ~/.arduino15 directory. That will destroy any configured boards and preferences and get you back to the default Arduino configuration. Then just follow the instructions for installing Roger's core from github. Don't modify the boards.txt file.
No - i don't believe this.
As i remember there is the same URL in the installation description for Roger's core http://dan.drown.org/stm32duino/package ... index.json
as for STM32duino with STM32F1.

Yes - of course everything is at the start point when i delete the .arduino15 directory.
But as you can see that was not the way to solve the USB problems. ;)

USB flashing with the bootloader has no priority - i will look for it another time ...

User avatar
Rick Kimball
Posts: 1400
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: [Solved] Serial USB for Blue Pill board

Post by Rick Kimball » Wed Jan 02, 2019 6:44 pm

lsmod wrote:
Wed Jan 02, 2019 6:40 pm
No - i don't believe this.
As i remember there is the same URL in the installation description for Roger's core http://dan.drown.org/stm32duino/package ... index.json
as for STM32duino with STM32F1.
Roger's core doesn't have a boards manager .json file. The only way to install it is manually. It will never end up in .arduino15. It is meant to be installed in $HOME/Arduino/hardware/Arduino_STM32
-rick

User avatar
Rick Kimball
Posts: 1400
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: [Solved] Serial USB for Blue Pill board

Post by Rick Kimball » Wed Jan 02, 2019 7:18 pm

I just added Dan Drown's .json file to my arduino preferences (http://dan.drown.org/stm32duino/package ... index.json) Using the Arduino board manager it installs Dan's version of Roger's core in $HOME/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3.

When I look at the Tools menu after the install, I see two sets of identical "STM32F1 Boards (stm32duinoforum.com/forum)". One uses Dan's core from .arduno15 and the other uses $HOME/Arduino/hardware/Arduino_STM32.
-rick

User avatar
lsmod
Posts: 65
Joined: Mon Dec 24, 2018 4:36 pm
Location: Germany

Re: [Solved] Serial USB for Blue Pill board

Post by lsmod » Thu Jan 03, 2019 10:42 am

Rick Kimball wrote:
Wed Jan 02, 2019 7:18 pm
it installs Dan's version of Roger's core in $HOME/.arduino15/packages/stm32duino/hardware/STM32F1/2018.12.3.
When the installation of STM32duino is indirect a version of Roger's core then we have the explanation why Roger's core don't have to be installed. ;)

At least USB functionality can be added as usual as a library via "#include ".
But this cannot be found in the documentation so far.

Locked