I fixed the platformio.ini - here is what I am using now:
[env:bw_swan_r5]
platform = ststm32
board = bw_swan_r5
upload_protocol = dfu
framework = arduino
build_flags = -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
monitor_speed = 115200
lib_deps =
Wire
blues/Blues Wireless Notecard@^1.3.16
and here the build & upload output
* Executing task: platformio run --target upload
Processing bw_swan_r5 (platform: ststm32; board: bw_swan_r5; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/bw_swan_r5.html
PLATFORM: ST STM32 (15.4.1) > BluesWireless Swan R5
HARDWARE: STM32L4R5ZIY6 120MHz, 640KB RAM, 2MB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
- framework-arduinoststm32 @ 4.20200.221104 (2.2.0)
- framework-cmsis @ 2.50700.210515 (5.7.0)
- tool-dfuutil @ 1.11.0
- tool-openocd @ 2.1100.211028 (11.0)
- tool-stm32duino @ 1.0.1
- toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 11 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio/build/bw_swan_r5/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.1% (used 976 bytes from 655360 bytes)
Flash: [ ] 0.8% (used 17484 bytes from 2097152 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, dfu, jlink, mbed, serial, stlink
CURRENT: upload_protocol = stlink
Uploading .pio/build/bw_swan_r5/firmware.elf
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-17-00:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
hla_swd
Error: open failed
in procedure 'program'
** OpenOCD init failed **
shutdown command invoked
*** [upload] Error 1
===================================================== [FAILED] Took 2.90 seconds =====================================================
* The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: platformio run --target upload
Processing bw_swan_r5 (platform: ststm32; board: bw_swan_r5; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/bw_swan_r5.html
PLATFORM: ST STM32 (15.4.1) > BluesWireless Swan R5
HARDWARE: STM32L4R5ZIY6 120MHz, 640KB RAM, 2MB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
- framework-arduinoststm32 @ 4.20200.221104 (2.2.0)
- framework-cmsis @ 2.50700.210515 (5.7.0)
- tool-dfuutil @ 1.11.0
- tool-openocd @ 2.1100.211028 (11.0)
- tool-stm32duino @ 1.0.1
- toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wire @ 1.0
|-- Blues Wireless Notecard @ 1.3.18
| |-- Wire @ 1.0
Building in release mode
Compiling .pio/build/bw_swan_r5/FrameworkArduinoVariant/PeripheralPins.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduinoVariant/PeripheralPins_SWAN_R5.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduinoVariant/generic_clock.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduinoVariant/variant_SWAN_R5.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduinoVariant/variant_generic.cpp.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_adc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_adc_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_can.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_cec.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_comp.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_comp_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_cordic.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_cortex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_crc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_crc_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_cryp.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_cryp_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dac.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dac_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dcache.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dma.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dma2d.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dma_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dsi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_dts.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_eth.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_eth_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_exti.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_fdcan.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_firewall.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_flash.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ramfunc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_fmac.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_gfxmmu.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_gpio.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_gpio_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_gtzc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_hash.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_hash_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_hcd.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_hrtim.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_hsem.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_i2c.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_i2c_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_i2s.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_i2s_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_icache.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_ipcc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_irda.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_iwdg.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_jpeg.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_lcd.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_lptim.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_mdf.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_mdios.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_mdma.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_mmc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_mmc_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_nand.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_nor.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_opamp.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_opamp_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_ospi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_otfdec.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pccard.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pcd.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pcd_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pka.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pssi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pwr.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_pwr_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_qspi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_ramcfg.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_ramecc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_rcc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_rcc_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_rng.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_rng_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_rtc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_rtc_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sai.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sai_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sd.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sd_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sdadc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sdram.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_smbus.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_smbus_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_spdifrx.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_spi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_spi_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_sram.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_subghz.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_swpmi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_tim.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_tim_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_tsc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_uart.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_uart_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_usart.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_usart_ex.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/HAL/stm32yyxx_hal_wwdg.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_adc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_bdma.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_comp.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_cordic.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_crc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_crs.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_dac.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_delayblock.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_dlyb.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_dma.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_dma2d.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_exti.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_fmac.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_fmc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_fmpi2c.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_fsmc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_gpio.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_hrtim.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_i2c.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_icache.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_lpgpio.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_lptim.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_lpuart.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_mdma.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_opamp.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_pka.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_pwr.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_rcc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_rng.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_rtc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_sdmmc.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_spi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_swpmi.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_tim.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_ucpd.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_usart.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_usb.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/LL/stm32yyxx_ll_utils.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/PortNames.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/analog.cpp.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/bootloader.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/clock.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/core_callback.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/dwt.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/hw_config.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/interrupt.cpp.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/otp.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/pinmap.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/stm32_def.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/system_stm32yyxx.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/timer.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/stm32/uart.c.o
Compiling .pio/build/bw_swan_r5/SrcWrapper/src/syscalls.c.o
Compiling .pio/build/bw_swan_r5/src/main.cpp.o
Compiling .pio/build/bw_swan_r5/libf30/Wire/Wire.cpp.o
Compiling .pio/build/bw_swan_r5/libf30/Wire/utility/twi.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/NoteI2c_Arduino.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/NoteLog_Arduino.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/NoteSerial_Arduino.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/NoteTime_Arduino.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/NoteTxn_Arduino.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/Notecard.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_atof.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_b64.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_cjson.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_cjson_helpers.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_const.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_ftoa.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_helpers.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_hooks.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_i2c.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_md5.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_printf.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_request.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_serial.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_str.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/n_ua.c.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteClearLocation_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteDebug_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetEnv_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetLocationMode_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetLocation_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetNetStatus_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetServiceConfig_test.cpp.o
Archiving .pio/build/bw_swan_r5/libf30/libWire.a
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetStatus_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteGetVersion_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteIsConnected_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteLocationValid_test.cpp.o
Indexing .pio/build/bw_swan_r5/libf30/libWire.a
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NotePayload_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NotePrint_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NotePrintln_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteRegion_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteRequestResponseJSON_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteRequestResponse_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteRequestWithRetry_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteRequest_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteSerialHooks_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteSetFn_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteSetLocationMode_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteSetLocation_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteSleep_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteTime_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteTransactionHooks_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/NoteTransaction_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/i2cNoteReset_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/i2cNoteTransaction_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/serialNoteReset_test.cpp.o
Compiling .pio/build/bw_swan_r5/lib631/Blues Wireless Notecard/note-c/test/src/serialNoteTransaction_test.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/HardwareTimer.cpp.o
Archiving .pio/build/bw_swan_r5/lib631/libBlues Wireless Notecard.a
Compiling .pio/build/bw_swan_r5/FrameworkArduino/IPAddress.cpp.o
Indexing .pio/build/bw_swan_r5/lib631/libBlues Wireless Notecard.a
Compiling .pio/build/bw_swan_r5/FrameworkArduino/Print.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/RingBuffer.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/Tone.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/USBSerial.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/VirtIOSerial.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/WInterrupts.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/WSerial.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/WString.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/abi.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/avr/dtostrf.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/board.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/hooks.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/itoa.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/main.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/new.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/pins_arduino.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/device.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/condition.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/cortexm/sys.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_device.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_init.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_io.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_shmem.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/generic/time.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/init.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/io.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/log.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/libmetal/shmem.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/mbox_ipcc.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/open-amp/remoteproc/remoteproc_virtio.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/open-amp/rpmsg/rpmsg.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/open-amp/rpmsg/rpmsg_virtio.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/openamp.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/rsc_table.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/virt_uart.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/virtio/virtio.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/virtio/virtqueue.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/virtio_buffer.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/OpenAMP/virtio_log.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/startup_stm32yyxx.S.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/cdc/cdc_queue.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/cdc/usbd_cdc.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/cdc/usbd_cdc_if.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/hid/usbd_hid_composite.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/hid/usbd_hid_composite_if.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usb_device_core.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usb_device_ctlreq.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usb_device_ioreq.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usbd_conf.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usbd_desc.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usbd_ep_conf.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/stm32/usb/usbd_if.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/wiring_analog.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/wiring_digital.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/wiring_pulse.cpp.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/wiring_shift.c.o
Compiling .pio/build/bw_swan_r5/FrameworkArduino/wiring_time.c.o
Archiving .pio/build/bw_swan_r5/libFrameworkArduino.a
Indexing .pio/build/bw_swan_r5/libFrameworkArduino.a
Linking .pio/build/bw_swan_r5/firmware.elf
Checking size .pio/build/bw_swan_r5/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.6% (used 3988 bytes from 655360 bytes)
Flash: [ ] 1.4% (used 28712 bytes from 2097152 bytes)
Building .pio/build/bw_swan_r5/firmware.bin
Adding dfu suffix to firmware.bin
dyld[71591]: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
Referenced from: <2C64C116-83B7-3F20-B5BF-951356492177> /Users/nik/.platformio/packages/tool-dfuutil/bin/dfu-suffix
Reason: tried: '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/lib/libusb-1.0.0.dylib' (no such file), '/usr/lib/libusb-1.0.0.dylib' (no such file, not in dyld cache)
*** [.pio/build/bw_swan_r5/firmware.bin] Error -6
==================================================== [FAILED] Took 12.47 seconds ====================================================
* The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Note: rather than being lazy, I do not feel qualified to roam through tons of problem reports like mine. Can you advise me here?