Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller. More information: https://github.com/texane/stlink.
st-util -p 4500
(gdb) target extended-remote localhost:4500
(gdb) load firmware.elf