Use this diagram for various uses.
If you need to flash / update / unbrick using a hardware programmer, please use this guide as your reference and follow this guide : https://youtu.be/RK5FQZe1MAs
If somehow you don't have / lost the USB connector to flash the chip, you can follow this diagram to make your own USB cable