Configure BOOT0 Pin for USB DFU and Normal Operation in STM32H745
Hello,
I am working with the STM32H745 microcontroller and planning to upload firmware via USB DFU. I need clarification about the BOOT0 pin configuration for this process:
- For USB DFU mode: Should I set the BOOT0 pin to 1 (Boot from System Memory) before performing a reset?
- For normal operation: Should I set the BOOT0 pin to 0 (Boot from User Flash) after programming and perform another reset?
Additionally, is there a way to switch between DFU mode and normal operation without physically toggling the BOOT0 pin, such as through software or other techniques?
Any guidance or recommendations would be appreciated.
and below circuit i used in my custom board design to select both option. P1 is jumper. is it correct method? or suggest any.

