We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b33d219 commit 8d90d47Copy full SHA for 8d90d47
stm32_flash.py
@@ -50,6 +50,10 @@ def STM32_startCommunication() -> bytes:
50
51
52
def STM32_endCommunication():
53
+ """
54
+ Ends communication with STM32 restoring flash boot mode and resetting
55
+ :return:
56
57
STM32_bootMode(bootloader=False)
58
STM32_reset()
59
@@ -82,6 +86,11 @@ def STM32_reset():
82
86
83
87
84
88
def STM32_bootMode(bootloader: bool = False):
89
90
+ Sets boot mode for STM32
91
+ :param bootloader: if True, STM32 bootloader is run on boot
92
93
85
94
_Boot0.value(bootloader)
95
96
0 commit comments