I think I figured it out. I need to move the ProffieOS.ino.elf to the /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/
I did get this error but I think it’s because I’m not connected to the usb at all.
/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/linux/openocd/bin/openocd -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg -c "program ProffieOS.ino.elf verify reset exit"
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: Debug adapter does not support any transports? Check config file order.
Error: unable to select a session transport. Can't continue.
shutdown command invoked
@profezzorn if you can confirm that this is right?
I think you’re on the right track. Try it and see.
It’s not possible to break the board this way, just like with USB programming, so it should be safe to experiment.
so I have recieved the parts and it’s connected to my laptop.
the gnd swdclk and swdio i ran the command but I;m getting this error
sudo /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/linux/openocd/bin/openocd -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg -c "program ProffieOS.ino.elf verify reset exit"
[sudo] password for maxb:
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg:6: Error: Can't find target/swj-dp.tcl
in procedure 'script'
at file "embedded:startup.tcl", line 60
at file "/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg", line 6
so I’m checking youtube and did find something that got me a bit closer.
question, do I need power e.g. battery connected?
I modded the openocd so that it references the both the target chip and the cfg file to use.
[maxb@max-laptop bin]$ ./openocd -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/interface/stlink-v2.cfg -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg -s /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/ -c "program ProffieOS.ino.elf verify reset exit"
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: open failed
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
This script uploads over USB.
Once you figure out how to upload with openocd, you could modify this script to use openocd, and then would be able to upload directly from Arduino.
added the battery and I’m still getting the same error as above.
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: open failed
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
ran the command again as root.
[max-laptop ~]# /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/linux/openocd/bin/openocd -s /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/ -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/interface/stlink-v2.cfg -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg -c "program ./ProffieOS.ino.elf verify reset exit"
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Info : STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.274468
Error: init mode failed (unable to connect to the target)
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
using the target/stm32*.cfg gives me this error.
[maxb@max-laptop bin]$ ./openocd -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/interface/stlink-v2.cfg -f /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/target/stm32l4x.cfg -s /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/share/openocd/scripts/ -c "program ProffieOS.ino.elf verify reset exit"
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: open failed
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 473
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
I used all the targets cfg files and removed the depracated cfg files (all ending in stlink.cfg)
based on some searches it’s stating that the battery is not powerful enough.
my board is just using GND, SWCLK AND SWDIO should I use the 3.3v pin as well?
When you’re not running as root, you don’t have access to the ST-link, so you need to run as root.
It’s clearly doing better when you run as root, but it’s still not connecting.
That generally means one of the folllowing:
no power to the CPU
GND/SWDIO/SWDCLK are not connected properly
some weird config / software problem
board is fried
Here is what I see when I run openocd (for debugging, so no program commands)
root@gem:/home/hubbe/lib/arduino-STM32L4# ./tools/linux/openocd/bin/openocd -s tools/share/openocd/scripts/ -f ./variants/STM32L433CC-Proffieboard/openocd_scripts/stm32l433cc_butterfly.cfg
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.246123
Info : STM32L433.cpu: hardware has 6 breakpoints, 4 watchpoints
So mostly the same up until the last line.
If I remove power from my Proffieboard, I get very much the same as what you have:
oot@gem:/home/hubbe/lib/arduino-STM32L4# ./tools/linux/openocd/bin/openocd -s tools/share/openocd/scripts/ -f ./variants/STM32L433CC-Proffieboard/openocd_scripts/stm32l433cc_butterfly.cfg
Open On-Chip Debugger 0.10.0-dev-00272-gf17dc4a (2016-10-10-15:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.242942
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'
I very much doubt that the battery would be too weak unless it is really really low.
You could connect the 3.3v output from the ST-link to the 3.3v pad on the board instead of using a battery, either should work.
If you always want to use openocd, you can just modify the script you posted above.
I’m not quite sure how to make it selectable. I would need to read up on Arduino menues work.
so I enabled the debugging during compilation and the dfu-util and dfu-suffix seems to be run but I’m not seeing the stm32l-upload being run in this debugging.
/usr/share/arduino/arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/maxb/.arduino15/packages -tools /usr/share/arduino/tools-builder -tools /home/maxb/.arduino15/packages -libraries /home/maxb/Arduino/libraries -fqbn=proffieboard:stm32l4:ProffieboardV2-L433CC:usb=cdc,dosfs=sdspi,speed=80,opt=os -ide-version=10819 -build-path /tmp/arduino_build_631187 -warnings=none -build-cache /tmp/arduino_cache_559473 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update -prefs=runtime.tools.arm-none-eabi-gcc-9-2020-q2-update.path=/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update -verbose /home/maxb/Documents/ProffieOS/ProffieOS.ino
/usr/share/arduino/arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -hardware /home/maxb/.arduino15/packages -tools /usr/share/arduino/tools-builder -tools /home/maxb/.arduino15/packages -libraries /home/maxb/Arduino/libraries -fqbn=proffieboard:stm32l4:ProffieboardV2-L433CC:usb=cdc,dosfs=sdspi,speed=80,opt=os -ide-version=10819 -build-path /tmp/arduino_build_631187 -warnings=none -build-cache /tmp/arduino_cache_559473 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update -prefs=runtime.tools.arm-none-eabi-gcc-9-2020-q2-update.path=/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update -verbose /home/maxb/Documents/ProffieOS/ProffieOS.ino
Using board 'ProffieboardV2-L433CC' from platform in folder: /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0
Using core 'stm32l4' from platform in folder: /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0
Detecting libraries used...
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -flto -fdevirtualize-at-ltrans -w -x c++ -E -CC -D_SYSTEM_CORE_CLOCK_=80000000L -DARDUINO=10819 -DARDUINO_STM32L4_BUTTERLY -DARDUINO_ARCH_STM32L4 -DSTM32L433xx -DPROFFIEBOARD_VERSION=2 -D__FPU_PRESENT=1 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -mslow-flash-data -fsingle-precision-constant -felide-constructors -ffast-math -DUSB_VID=0x1209 -DUSB_PID=0x6668 -DUSB_DID=0xffff "-DUSB_MANUFACTURER=\"hubbe.net\"" "-DUSB_PRODUCT=\"Proffieboard\"" -DUSB_TYPE=USB_TYPE_CDC -DDOSFS_SDCARD=1 -DDOSFS_SFLASH=0 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Device/ST/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/cores/stm32l4 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/variants/STM32L433CC-ProffieboardV2 /tmp/arduino_build_631187/sketch/ProffieOS.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -flto -fdevirtualize-at-ltrans -w -x c++ -E -CC -D_SYSTEM_CORE_CLOCK_=80000000L -DARDUINO=10819 -DARDUINO_STM32L4_BUTTERLY -DARDUINO_ARCH_STM32L4 -DSTM32L433xx -DPROFFIEBOARD_VERSION=2 -D__FPU_PRESENT=1 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -mslow-flash-data -fsingle-precision-constant -felide-constructors -ffast-math -DUSB_VID=0x1209 -DUSB_PID=0x6668 -DUSB_DID=0xffff "-DUSB_MANUFACTURER=\"hubbe.net\"" "-DUSB_PRODUCT=\"Proffieboard\"" -DUSB_TYPE=USB_TYPE_CDC -DDOSFS_SDCARD=1 -DDOSFS_SFLASH=0 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Device/ST/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/cores/stm32l4 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/variants/STM32L433CC-ProffieboardV2 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/libraries/Wire/src /tmp/arduino_build_631187/sketch/ProffieOS.ino.cpp -o /dev/null
Using cached library dependencies for file: /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/libraries/Wire/src/Wire.cpp
Generating function prototypes...
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -flto -fdevirtualize-at-ltrans -w -x c++ -E -CC -D_SYSTEM_CORE_CLOCK_=80000000L -DARDUINO=10819 -DARDUINO_STM32L4_BUTTERLY -DARDUINO_ARCH_STM32L4 -DSTM32L433xx -DPROFFIEBOARD_VERSION=2 -D__FPU_PRESENT=1 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -mslow-flash-data -fsingle-precision-constant -felide-constructors -ffast-math -DUSB_VID=0x1209 -DUSB_PID=0x6668 -DUSB_DID=0xffff "-DUSB_MANUFACTURER=\"hubbe.net\"" "-DUSB_PRODUCT=\"Proffieboard\"" -DUSB_TYPE=USB_TYPE_CDC -DDOSFS_SDCARD=1 -DDOSFS_SFLASH=0 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Device/ST/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/cores/stm32l4 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/variants/STM32L433CC-ProffieboardV2 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/libraries/Wire/src /tmp/arduino_build_631187/sketch/ProffieOS.ino.cpp -o /tmp/arduino_build_631187/preproc/ctags_target_for_gcc_minus_e.cpp
/usr/bin/arduino-ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_631187/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -MMD -flto -fdevirtualize-at-ltrans -D_SYSTEM_CORE_CLOCK_=80000000L -DARDUINO=10819 -DARDUINO_STM32L4_BUTTERLY -DARDUINO_ARCH_STM32L4 -DSTM32L433xx -DPROFFIEBOARD_VERSION=2 -D__FPU_PRESENT=1 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -mslow-flash-data -fsingle-precision-constant -felide-constructors -ffast-math -DUSB_VID=0x1209 -DUSB_PID=0x6668 -DUSB_DID=0xffff "-DUSB_MANUFACTURER=\"hubbe.net\"" "-DUSB_PRODUCT=\"Proffieboard\"" -DUSB_TYPE=USB_TYPE_CDC -DDOSFS_SDCARD=1 -DDOSFS_SFLASH=0 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Device/ST/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/STM32L4xx/Include -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/cores/stm32l4 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/variants/STM32L433CC-ProffieboardV2 -I/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/libraries/Wire/src /tmp/arduino_build_631187/sketch/ProffieOS.ino.cpp -o /tmp/arduino_build_631187/sketch/ProffieOS.ino.cpp.o
Compiling libraries...
Compiling library "Wire"
Using previously compiled file: /tmp/arduino_build_631187/libraries/Wire/Wire.cpp.o
Compiling core...
Using previously compiled file: /tmp/arduino_build_631187/core/variant.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/hooks.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/itoa.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring_digital.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring_shift.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring_tone.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring_analog.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/avr/dtostrf.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/avr/eeprom.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring_pulse.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/avr/fdevopen.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/stm32l4_wiring_interrupts.c.o
Using previously compiled file: /tmp/arduino_build_631187/core/IPAddress.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/Print.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/CDC.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/FS.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/Stream.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/STM32.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/Uart.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/USBCore.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/RingBuffer.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/HID.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/main.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/abi.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/WString.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/new.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/WMath.cpp.o
Using previously compiled file: /tmp/arduino_build_631187/core/core.a
Archiving built core (caching) in: /tmp/arduino_cache_559473/core/core_1ebd72bc82b5bf3e65473ee615aaa023.a
Linking everything together...
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-gcc -L/tmp/arduino_build_631187 -g -Os -Wl,--gc-sections -DSTM32L433xx -DPROFFIEBOARD_VERSION=2 -D__FPU_PRESENT=1 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -mslow-flash-data -fsingle-precision-constant -felide-constructors -ffast-math -DUSB_VID=0x1209 -DUSB_PID=0x6668 -DUSB_DID=0xffff "-DUSB_MANUFACTURER=\"hubbe.net\"" "-DUSB_PRODUCT=\"Proffieboard\"" -DUSB_TYPE=USB_TYPE_CDC -DDOSFS_SDCARD=1 -DDOSFS_SFLASH=0 -T/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/variants/STM32L433CC-ProffieboardV2/linker_scripts/STM32L433CC_FLASH.ld -Wl,-Map,/tmp/arduino_build_631187/ProffieOS.ino.map --specs=nano.specs -mcpu=cortex-m4 -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -flto -fuse-linker-plugin -fdevirtualize-at-ltrans -o /tmp/arduino_build_631187/ProffieOS.ino.elf /tmp/arduino_build_631187/sketch/ProffieOS.ino.cpp.o /tmp/arduino_build_631187/libraries/Wire/Wire.cpp.o /tmp/arduino_build_631187/core/variant.cpp.o -Wl,--start-group /tmp/arduino_build_631187/core/core.a -Wl,--end-group -L/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/STM32L4xx/Lib -L/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/system/CMSIS/Lib -lstm32l433 -larm_cortexM4lf_math -lc -lm
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-objcopy -O binary /tmp/arduino_build_631187/ProffieOS.ino.elf /tmp/arduino_build_631187/ProffieOS.ino.dfu
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld:/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/variants/STM32L433CC-ProffieboardV2/linker_scripts/STM32L433CC_FLASH.ld:224: warning: memory region `SRAM2' not declared
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 16 bytes
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 16 bytes
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 16 bytes
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 16 bytes
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .bss by 16 bytes
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-objcopy -O binary -R .boot /tmp/arduino_build_631187/ProffieOS.ino.elf /tmp/arduino_build_631187/ProffieOS.ino.iap
/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/linux//dfu-suffix -v 0x1209 -p 0x6668 -d 0xffff -a /tmp/arduino_build_631187/ProffieOS.ino.dfu
dfu-suffix (dfu-util) 0.9
Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Suffix successfully added to file
/home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/tools/linux//dfu-suffix -v 0x1209 -p 0x6668 -d 0xffff -a /tmp/arduino_build_631187/ProffieOS.ino.iap
dfu-suffix (dfu-util) 0.9
Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Suffix successfully added to file
Using library Wire at version 1.0 in folder: /home/maxb/.arduino15/packages/proffieboard/hardware/stm32l4/3.6.0/libraries/Wire
/home/maxb/.arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/arm-none-eabi-size -A /tmp/arduino_build_631187/ProffieOS.ino.elf
Sketch uses 257616 bytes (98%) of program storage space. Maximum is 262144 bytes.
10
9
8
7
6
5
4
3
2
1
FAIL