The other day VK7HSE asked me how to manually reset a MMDVM_RPT_Hat without pulling the power supply aka. do that remotely. As the BOOT0 and RESET pin of the STM32F722 MCU is wired to the Raspberry Pi GPIOs there is a simple command line solution to do this. You just need to flip some GPIOs (in the right order of course). Here is how to do it.
During normal operating mode BOOT0 is low. This pin is wired to GPIO hardware pin 38 (wPi pin 28 / BCM pin 20). The MCU RESET pin is connected to GPIO hardware pin 40 (wPi pin 29 / BCM pin 21). So a reset to normal operating mode would be:
1 2 3 4 5 6 7 8 9 10 11 12 13
In contrast to this putting the MCU into flash mode requires setting GPIO pin 38 to high and then resetting the MCU.