Confusion in selecting boot mode.
Hello guys,
I am trying to make a development board using STM32G070KBT6 MCU, I want to add two modes to program flash memory
1. UART
2. SWD
but the PA14-BOOT0 share a common pin, I have looked online for suggestions but am a bit confused now, can anyone give a final solution if I want to use both UART and SWD to upload code and a bit reference on how to do it
if I have to add a circuit part or change bits, I only want these to upload code to my MCU.

