The microcontroller and OpenOCD have no idea how to communicate with external memory by default. I am not sure what the CubeIDE is doing in the background to initialize those peripherals (maybe semihosting or an externalLoader specifically for whatever is on the development kit).
Anyways, here is somewhere to start with VisualGDB