Any suggestions how to use the debugger restart button?
When I am in the debugger, and press on the restart button
I am getting an error in the terminal windows, and have to first close the debugger before being able to restart the debugging session.
Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe debug
Processing my_env (platform: ststm32; board: weact_mini_h750vbtx)
----------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/weact_mini_h750vbtx.html
PLATFORM: ST STM32 (15.6.0) > WeAct Studio MiniSTM32H750VBTX
HARDWARE: STM32H750VBT6 480MHz, 128KB RAM, 512KB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 4 compatible libraries
Scanning dependencies...
Dependency Graph
|-- cube_ide
|-- serial_packets
|-- io
|-- misc
Building in debug mode
*** [.pio\build\my_env\firmware.elf] C:\Users\user\projects\daq\repo\controller\platformio\.pio\build\my_env\firmware.elf: The process cannot access the file because it is being used by another process
========================================== [FAILED] Took 4.46 seconds ==========================================
My platformio.ini
[env:my_env]
platform = ststm32
extra_scripts = extra_script.py
board = weact_mini_h750vbtx
build_type = debug
debug_tool = stlink
upload_protocol = stlink
debug_build_flags = -O0 -ggdb3 -g3
board_build.ldscript = STM32H750VBTX_FLASH.ld
monitor_port = COM6
lib_archive = no
check_skip_packages = yes
lib_deps =
cube_ide
serial_packets
build_flags =
-fmax-errors=5
-mfpu=fpv5-sp-d16
-mfloat-abi=hard
-Wl,-Map,${BUILD_DIR}/firmware.map
-mthumb
-D DEBUG
-D USE_HAL_DRIVER
-DSTM32_THREAD_SAFE_STRATEGY=4
-fstack-usage
-std=gnu11
-Ilib/cube_ide/Core/Inc
-Ilib/cube_ide/Core/ThreadSafe
-Ilib/cube_ide/Drivers/CMSIS/Device/ST/STM32H7xx/Include
-Ilib/cube_ide/Drivers/CMSIS/Include
-Ilib/cube_ide/Drivers/STM32H7xx_HAL_Driver/Inc
-Ilib/cube_ide/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
-Ilib/cube_ide/Middlewares/ST/STM32_USB_Device_Library/Core/Inc
-Ilib/cube_ide/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS
-Ilib/cube_ide/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/Include
-Ilib/cube_ide/Middlewares/Third_Party/FreeRTOS/Source/include
-Ilib/cube_ide/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F
-Ilib/cube_ide/USB_DEVICE/App
-Ilib/cube_ide/USB_DEVICE/Target
-D CONFIG_MAX_PACKET_DATA_LEN=100
-D CONFIG_MAX_PENDING_COMMANDS=5