...
The semihosting has also to be initialized inside the OpenOCD debugger environment.
Semihosting requires a debugger attached.
This can be achieved by adding the command "monitor arm semihosting enable" to the GDB commands executed by the IDE inside the "Debug Settings...".
...