Skip to content

Commit 73600ed

Browse files
Add section "Serial port" telling the user to set FLASHING_SERIAL_PORT variable in case they use stm32flash.
1 parent 1022deb commit 73600ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

guides/flashing.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ There are differennt interfaces (serial, I2C, SPI, SWD, etc.) and programs you c
2020

2121
- [st-flash](https://github.com/stlink-org/stlink) uses SWD interface. (default)
2222
- [stm32flash](https://github.com/stm32duino/stm32flash) uses serial interface.
23+
24+
### Serial port
25+
26+
Follow this step only if you are using `stm32flash`.
27+
28+
In your makefile set `FLASHING_SERIAL_PORT` variable to the name of the serial port to which your device is connected.
2329

2430
### Connect an LED
2531

@@ -49,6 +55,7 @@ Before flashing your device, make sure to have done all the things on this check
4955

5056
- Make sure to change the `DEVICE` variable value in the make file to the name of your device;
5157
- Make sure to set the `FLASHING_TOOL` variable to the name of your flashing tool;
58+
- If you are using `stm32flash`, make sure to set the `FLASHING_SERIAL_PORT` variable to the name of your serial port;
5259
- Make sure to have changed the pin to "blink" if the LED on your development board is not connected to pin `PC13`;
5360
- Optionally, make sure to connect an LED to your development board if your development board does not have one built-in;
5461
- Make sure that you have properly connected the debugger to your development board;

0 commit comments

Comments
 (0)