Initial flashing stm32g474 without debugger/programmer
For the STM32G47xxx microcontroller, the transition to the system bootloader is fair by changing the optional bits or by transitioning from the user space. Setting the required optional bits forces the use of a programmer and something like St-Link Utility or CubeProgrammer.
Is it possible to flash the microcontroller without using a programmer? Thus, excluding the JTAG/SVD port from the target device. Flash is not allowed before installing the microcontroller into the device.

