...
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...".
After starting a debug session, you have to switch the console window to the OpenOCD one: