Development tools for Zephyr on STM32Workbench for Zephyr: VS Code extension to set up, build, flash and debug Zephyr applications on STM32.Devicetree manager: browse, edit and visualize Zephyr devicetree, STM32CubeMX-like for Zephyr.
Strange ! the double underscore are not mandatory.
You can check UART_printf example (CubeF4\Projects\STM32F401RE-Nucleo\Examples\UART\UART_Printf\SW4STM32\syscalls.c).
Note: If you are not using FreeRTOS, you do not need the stack_ptr (comment #define FreeRTOS)