You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/flashing.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@ Before flashing code on your device, there are some things to be checked first.
14
14
15
15
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.
16
16
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
+
17
21
### Connect an LED
18
22
19
23
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
41
45
Before flashing your device, make sure to have done all the things on this checklist:
42
46
43
47
- 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;
44
49
- Make sure to have changed the pin to "blink" if the LED on your development board is not connected to pin `PC13`;
45
50
- Optionally, make sure to connect an LED to your development board if your development board does not have one built-in;
46
51
- Make sure that you have properly connected the debugger to your development board;
0 commit comments