Executing task in folder F303K8_Test: C:\Users\User\.platformio\penv\Scripts\platformio.exe run --verbose --target upload --environment nucleo_f303k8 --upload-port COM10 Processing nucleo_f303k8 (platform: ststm32; board: nucleo_f303k8; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/nucleo_f303k8.html PLATFORM: ST STM32 (16.1.0) > ST Nucleo F303K8 HARDWARE: STM32F303K8T6 72MHz, 12KB RAM, 64KB Flash DEBUG: Current (stlink) On-board (stlink) External (blackmagic, cmsis-dap, jlink) PACKAGES: - framework-arduinoststm32 @ 4.20500.230714 (2.5.0) - framework-cmsis @ 2.50700.210515 (5.7.0) - tool-dfuutil @ 1.11.0 - tool-openocd @ 3.1200.0 (12.0) - tool-stm32duino @ 1.0.2 - toolchain-gccarmnoneeabi @ 1.100301.220327 (10.3.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 release mode MethodWrapper(["checkprogsize"], [".pio\build\nucleo_f303k8\firmware.elf"]) Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [= ] 7.6% (used 940 bytes from 12288 bytes) Flash: [=== ] 27.9% (used 18284 bytes from 65536 bytes) .pio\build\nucleo_f303k8\firmware.elf : section size addr .isr_vector 392 134217728 .text 16824 134218120 .rodata 1296 134234944 .ARM.extab 0 134236240 .ARM 0 134236240 .preinit_array 0 134236240 .init_array 16 134236240 .fini_array 8 134236256 .data 164 536870912 .bss 776 536871076 .noinit 0 536871852 ._user_heap_stack 1540 536871852 .ARM.attributes 48 0 .comment 67 0 Total 21131 (["upload"], [".pio\build\nucleo_f303k8\firmware.elf"]) AVAILABLE: blackmagic, cmsis-dap, jlink, mbed, stlink CURRENT: upload_protocol = stlink openocd -d2 -s C:\Users\User\.platformio\packages\tool-openocd/openocd/scripts -f board/st_nucleo_f3.cfg -c "program {.pio\build\nucleo_f303k8\firmware.elf} verify reset; shutdown;" xPack Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2023-01-30-15:04) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html debug_level: 2 Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD srst_only separate srst_nogate srst_open_drain connect_deassert_srst Info : clock speed 1000 kHz Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B Info : Target voltage: 3.243541 Info : [stm32f3x.cpu] Cortex-M4 r0p1 processor detected Info : [stm32f3x.cpu] target has 6 breakpoints, 4 watchpoints Info : starting gdb server for stm32f3x.cpu on 3333 Info : Listening on port 3333 for gdb connections [stm32f3x.cpu] halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000003a msp: 0xfffffffc Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : Unable to match requested speed 1000 kHz, using 950 kHz [stm32f3x.cpu] halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc Info : Unable to match requested speed 8000 kHz, using 4000 kHz Info : Unable to match requested speed 8000 kHz, using 4000 kHz ** Programming Started ** Info : device id = 0x10016438 Info : flash size = 64 KiB Warn : Adding extra erase range, 0x0800490c .. 0x08004fff Error: error writing to flash at address 0x08000000 at offset 0x00000000 embedded:startup.tcl:1516: Error: ** Programming Failed ** in procedure 'program' in procedure 'program_error' called at file "embedded:startup.tcl", line 1581 at file "embedded:startup.tcl", line 1516 *** [upload] Error 1 ==================================================== [FAILED] Took 28.26 seconds ==================================================== * The terminal process "C:\Users\User\.platformio\penv\Scripts\platformio.exe 'run', '--verbose', '--target', 'upload', '--environment', 'nucleo_f303k8', '--upload-port', 'COM10'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.