View Memory is not working (Unable to read memory error)

I am trying to veiw the memory of the stm32 bluepill debugged by a Blackmagic probe, I am entering the starting address of the flash memory of 0x08000000 and the boundary address of 0x08007FFF but I get the following error:

Failed to examine memory: Error: cannot open examinememory:/Memory%20%5B0x0800000%2B0x08007FFF%5D.dbgmem?address%3D0x0800000%26length%3D0x08007FFF%26timestamp%3D1616774964520. Detail: Error: Unable to read memory: Cannot execute this command while the target is running. Use the "interrupt" command to stop the target and then try again. (from data-read-memory-bytes 0x800000 1024)

This is the .ini file:
; PlatformIO Project Configuration File
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
; Please visit documentation for the other options and examples
; Redirecting...

platform =       ;Due to some issues
;platform = ststm32
board = bluepill_f103c8
framework = cmsis

; change microcontroller
board_build.mcu = stm32f103c8t6

; change MCU frequency
board_build.f_cpu = 72000000L

; All Debugging Configurations:
upload_protocol = blackmagic                                        ;SWD interface
debug_tool = blackmagic
debug_port = /dev/tty.usbmodem7BBB54AD1
upload_port = /dev/tty.usbmodem7BBB54AD1
;monitor_port = /dev/tty.usbmodem7BBB54AD3
;monitor_speed = 115200                                              ;Baud-rate
debug_init_break = tbreak Reset_Handler
debug_build_flags = -O0 -ggdb3

;some_extra_options = ...

;build_type = debug
;some_extra_options = ...

This is the source file:

#include "stm32f1xx.h"
#include <stdio.h>
#include <stdbool.h>        // Boolean library
#include <File1.h>

int main(void)

int x = 1000;
int y = 5000;
int z = x + y;

Is the output the same when you press the pause button in the debugging buttons section and retry the command?

Unfortunately, there is no pausing option!

Mhm yes it’s been replaced be the continue button because the core is already halted.

Does it work if you try it a second time?

Can you go to the “Debug Console” tab and manually execute

x /256bx 0x2000000

does it give a 256 byte hexdump now?

I guess yes.
This is what I got now:

Why can’t I use the GUI to do the same? Is there any way to read the memory without using the CLI?