Upload problem to B-G431B-ESC

Hi everyone,
I am trying to program B-G431B-ESC1, unfortunately I keep getting this message and am unable to upload the code. Does anyone have idea what might be causing this problem?

The message:

Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, jlink, mbed, stlink
CURRENT: upload_protocol = stlink
Uploading .pio\build\disco_b_g431b_esc1\firmware.elf
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-16-21:19)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

hla_swd
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08002030 msp: 0x20008000
** Programming Started **
Warn : Adding extra erase range, 0x08006ad8 .. 0x08006fff
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked
========================================================================================================================= [SUCCESS] Took 4.42 seconds =========================================================================================================================
 *  Terminal will be reused by tasks, press any key to close it. 

You’ve shown the log of a successfull upload with no error messages visible.

It seems more like that code you’re uploading to it is at fault.