File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Flashing firmware on STM32 via UART
2
+
3
+ ### How to
4
+
5
+ The steps to follow in order to flash a new firmware (.bin) file on STM32 are the following:
6
+
7
+ _ Hardware_
8
+ * Connect STM32 _ Boot0_ pin to VDD 3V3 or connect _ Boot0_ to _ D2_ pin (nano)
9
+ * Press _ Reset_ button on Nucleo board or connect STM32 Reset pin to _ D3_ (nano)
10
+ * Connect nano _ TX_ pin to STM32 _ D2_ (UART1 RX) pin
11
+ * Connect nano _ RX_ pin to STM32 _ D8_ (UART1 TX) pin
12
+ * Connect nano _ GND_ to STM32 _ GND_
13
+
14
+ _ Software_
15
+ * Use ` STM32_startCommunication ` to connect to STM32
16
+ * Perform a memory erase (eg. mass extended erase ` STM32_eraseMEM(0xFFFF) ` )
17
+ * Write your .bin file: ` STM32_writeMEM("Blink_fast.bin") `
18
+
19
+ If _ Boot0_ is wired to 3V3, disconnect it and press STM32 _ Reset_ pin
20
+
21
+ ### Tested on
22
+
23
+ * STM32-F401RE
You can’t perform that action at this time.
0 commit comments