Skip to content

Commit 1a9d005

Browse files
committed
FLASH.md instructions
1 parent 37322fa commit 1a9d005

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

FLASH.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)