Disclaimer: This guide was tested on an STM32G070CB, but with minor adjustments, it should work for most STM32 models.
To jump to the STM32 Bootloader from your running application, simply call the following function:
#define BOOTLOADER_ADDR 0x1FFF0000 // Bootloader start address (refer to AN2606). STM32 family-dependent.