Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eef8190

Browse files
Add guide for flashing over serial with stm32flash
1 parent 7d90226 commit eef8190

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎guides/flashing.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Before flashing code on your device, there are some things to be checked first.
1414

1515
Each template contains a make file located at the root of the template and is called `Makefile`. This make file contains a variable called `DEVICE`. This variable should contain the name of the device you want to compile your code for. You should format the name of your device like this: `STM32____x_`, where the "_" should be replaced by characters from the actual name (uppercase!) and the "x" is fixed. There are some exceptions to this naming scheme for STM32F4 devices, see the [Device name mapping page]({{ site.url }}/cheatsheets/device-name-mapping) for more information.
1616

17+
### Flashing tool
18+
19+
There are different interfaces (serial, I2C, SPI, SWD, etc.) and programs you can use to flash code to your device. If you want to use [stm32flash](https://github.com/stm32duino/stm32flash), in your makefile set the variables`FLASHING_TOOL` to 'stm32flash' and `FLASHING_SERIAL_PORT` to the name of the serial port to which your device is connected.
20+
1721
### Connect an LED
1822

1923
This step is optional. You should not have to do this if your board already has an LED built-in.
@@ -41,6 +45,7 @@ Most development boards come with jumpers or (DIP-)switches to set the BOOT-mode
4145
Before flashing your device, make sure to have done all the things on this checklist:
4246

4347
- Make sure to change the `DEVICE` variable value in the make file to the name of your device;
48+
- If you are using `stm32flash`, make sure to set the `FLASHING_TOOL` variable to that name and `FLASHING_SERIAL_PORT` to the name of your serial port;
4449
- Make sure to have changed the pin to "blink" if the LED on your development board is not connected to pin `PC13`;
4550
- Optionally, make sure to connect an LED to your development board if your development board does not have one built-in;
4651
- Make sure that you have properly connected the debugger to your development board;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /