Builds hanging on Linux mint 21 "Victoria" using Microsoft Visual Studio Code

Linux Mint version 21
Microsoft visual code version 1.81.1
Platformio 6.1.10

platformio.ini:

[env:genericSTM32F103C8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
debug_tool = stlink

The hang locks up the entire computer and no other programs can be launched. A reboot of the computer is the only way to recover from the hang.

I tried uninstalling the platform IDE element and reinstalling it but that did not resolve the issue.

If anyone has some ideas to troubleshoot this please comment.

At what stage does the hang occur? I’m on Mint 21.1 (or 21.2) and have no problems. Can you run another build (of blink?) and post the output please. Does the problem happen if you use the commandline instead of VSCode?

What version of python are you using?

If you wrap the text in triple backticks, like this:

```
Paste your code, output or error messages etc here
```

you’ll get proper formatting and characters after a \ wont be lost.

Cheers,
Norm.

Thanks for the response.

The hang only occurs during the build process when F5 is pressed, but it only occurs when building everything, (after a clean, or the addition of a library). Simple edits to a one or two code files and then performing a compile works fine. It’s only when everything gets built that there is a problem.

Compiling the blink example from also hangs on the first build while compiling stm32xyxx_hal_pwr_ex.c.o, but a subsequent build ran with no issues. Here’s the output from the subsequent build:

LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Checking size .pio/build/bluepill_f103c8/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   4.1% (used 836 bytes from 20480 bytes)
Flash: [==        ]  19.9% (used 13072 bytes from 65536 bytes)
================================================================================== [SUCCESS] Took 2.54 seconds ==================================================================================
 *  Terminal will be reused by tasks, press any key to close it. 

Using the PIO command line from a shell to build the program works fine.

Python version:

srodgers@srodgers-Precision-WorkStation-T3500 ~ $ python3 -V
Python 3.10.12

Interesting. I created a new project with your platformio.ini file, and a simple blink sketch using the Arduino framework and it compiles without error or hang every time. I’ve run cleans, added libraries, deleted the .pio folder to force a complete build and nothing fails I’m afraid.

The following is my Python, Mint, PlatformIO and VSCode info:

norman@Hubble2:~/temp/Steve$ python --version
Python 3.10.12

norman@Hubble2:~/temp/Steve$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 21.1
Release:        21.1
Codename:       vera

norman@Hubble2:~/temp/Steve$ pio system info
--------------------------  --------------------------------------------
PlatformIO Core             6.1.10
Python                      3.10.12-final.0
System Type                 linux_x86_64
Platform                    Linux-6.2.0-26-generic-x86_64-with-glibc2.35
File System Encoding        utf-8
Locale Encoding             UTF-8
PlatformIO Core Directory   /home/norman/.platformio
PlatformIO Core Executable  /home/norman/.platformio/penv/bin/platformio
Python Executable           /home/norman/.platformio/penv/bin/python
Global Libraries            0
Development Platforms       7
Tools & Toolchains          42
--------------------------  --------------------------------------------

Help->About in VSCode:

Version: 1.81.1
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:18:39.991Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.2.0-26-generic

And this is a full F5 (Debug) build:

 Processing genericSTM32F103C8 (platform: ststm32; board: bluepill_f103c8; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/bluepill_f103c8.html
PLATFORM: ST STM32 (15.6.0) > BluePill F103C8
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 @ 4.20400.0 (2.4.0) 
 - framework-cmsis @ 2.50700.210515 (5.7.0) 
 - 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...
No dependencies
Building in debug mode
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/PeripheralPins.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/PeripheralPins_MALYANM200_F103CB.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/generic_clock.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/startup_M200_f103xb.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/variant_AFROFLIGHT_F103CB.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/variant_MALYANM200_F103CB.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/variant_MAPLEMINI_F103CB.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/variant_PILL_F103Cx.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduinoVariant/variant_generic.cpp.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_adc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_adc_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_can.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_cec.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_comp.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_comp_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_cordic.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_cortex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_crc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_crc_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_cryp.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_cryp_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dac.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dac_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dcache.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dcmi_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dfsdm_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dma.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dma2d.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dma_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dsi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_dts.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_eth.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_eth_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_exti.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_fdcan.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_firewall.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_flash.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_flash_ramfunc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_fmac.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_fmpi2c_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_fmpsmbus_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_gfxmmu.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_gpio.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_gpio_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_gpu2d.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_gtzc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_hash.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_hash_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_hcd.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_hrtim.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_hsem.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_i2c.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_i2c_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_i2s.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_i2s_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_icache.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_ipcc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_irda.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_iwdg.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_jpeg.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_lcd.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_lptim.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_ltdc_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_mdf.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_mdios.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_mdma.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_mmc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_mmc_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_nand.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_nor.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_opamp.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_opamp_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_ospi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_otfdec.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pccard.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pcd.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pcd_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pka.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pssi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pwr.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_pwr_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_qspi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_ramcfg.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_ramecc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_rcc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_rcc_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_rng.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_rng_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_rtc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_rtc_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sai.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sai_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sd.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sd_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sdadc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sdram.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_smartcard_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_smbus.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_smbus_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_spdifrx.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_spi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_spi_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_sram.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_subghz.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_swpmi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_tim.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_tim_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_tsc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_uart.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_uart_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_usart.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_usart_ex.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_wwdg.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HAL/stm32yyxx_hal_xspi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/HardwareTimer.cpp.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_adc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_bdma.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_comp.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_cordic.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_crc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_crs.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_dac.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_delayblock.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_dlyb.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_dma.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_dma2d.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_exti.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_fmac.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_fmc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_fmpi2c.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_fsmc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_gpio.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_hrtim.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_i2c.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_icache.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_lpgpio.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_lptim.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_lpuart.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_mdma.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_opamp.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_pka.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_pwr.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_rcc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_rng.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_rtc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_sdmmc.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_spi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_swpmi.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_tim.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_ucpd.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_usart.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_usb.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/LL/stm32yyxx_ll_utils.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/new.cpp.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/PortNames.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/analog.cpp.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/bootloader.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/clock.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/core_callback.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/dwt.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/hw_config.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/interrupt.cpp.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/otp.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/pinmap.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/stm32_def.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/system_stm32yyxx.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/timer.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/stm32/uart.c.o
Compiling .pio/build/genericSTM32F103C8/SrcWrapper/src/syscalls.c.o
Compiling .pio/build/genericSTM32F103C8/src/main.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/HardwareSerial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Print.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/RingBuffer.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/Tone.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/USBSerial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/VirtIOSerial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/WInterrupts.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/WSerial.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/WString.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/abi.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/avr/dtostrf.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/board.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/core_debug.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/hooks.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/itoa.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/main.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/pins_arduino.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/device.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/condition.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/cortexm/sys.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_device.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_init.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_io.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_shmem.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/generic/time.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/init.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/io.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/log.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/libmetal/shmem.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/mbox_ipcc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/open-amp/remoteproc/remoteproc_virtio.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/open-amp/rpmsg/rpmsg.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/open-amp/rpmsg/rpmsg_virtio.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/openamp.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/rsc_table.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/virt_uart.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/virtio/virtio.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/virtio/virtqueue.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/virtio_buffer.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/OpenAMP/virtio_log.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/startup_stm32yyxx.S.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/cdc/cdc_queue.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/cdc/usbd_cdc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/cdc/usbd_cdc_if.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/hid/usbd_hid_composite.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/hid/usbd_hid_composite_if.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usb_device_core.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usb_device_ctlreq.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usb_device_ioreq.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usbd_conf.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usbd_desc.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usbd_ep_conf.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/stm32/usb/usbd_if.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wiring_analog.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wiring_digital.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wiring_pulse.cpp.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wiring_shift.c.o
Compiling .pio/build/genericSTM32F103C8/FrameworkArduino/wiring_time.c.o
Archiving .pio/build/genericSTM32F103C8/libFrameworkArduino.a
Indexing .pio/build/genericSTM32F103C8/libFrameworkArduino.a
Linking .pio/build/genericSTM32F103C8/firmware.elf
Checking size .pio/build/genericSTM32F103C8/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   4.1% (used 844 bytes from 20480 bytes)
Flash: [==        ]  19.5% (used 12784 bytes from 65536 bytes)
Building .pio/build/genericSTM32F103C8/firmware.bin
============================================================================================================== [SUCCESS] Took 2.40 seconds ==============================================================================================================
 *  Terminal will be reused by tasks, press any key to close it. 

I’m at a loss to advise further I’m afraid. The fact that the command-line seems to work fine is interesting as it implies the problem is in the VSCode extension, or, in VSCode itself.

Have you noticed if it always fails at the same file when building?

Does a non-debug build work correctly?

What about looking in /var/log/syslog or /var/log/syslog.1 (which is the previous syslog if you had to reboot)? Maybe whatever happened killed Xorg, so /var/log/Xorg.0.log would be a good place to check. Anything in those files that look responsible for the hang?

Not sure what else to check I’m afraid. :frowning_face:.

Cheers,
Norm.

I also suspect it is something in VSCode.

No. It fails on random files when compiling all of the files.

No. Non debug builds fail in the same way from the platform IO VS code IDE.

Thanks for the /var/log/syslog.1 tip. I’ll check that the next time it hangs following a reboot.

1 Like

This implies some sort of intermittent problem. At least, it does to me.

Hmm, at least it’s consistent in its intermittency. :wink:

Maybe @maxgerhardt or @ivankravets might have something to offer here?

Good luck, I hope you find something.

Cheers,
Norm.