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
|`STM32F103`| Generic STM32F103 target without LED | 8KiB ||
20
+
|`STM32F072`| Generic STM32F072 target without LED | 16KiB ||
21
+
|`BLUEPILL`| Cheap dev board | 8KiB |http://wiki.stm32duino.com/index.php?title=Blue_Pill|
22
+
|`MAPLEMINI`| LeafLabs Maple Mini board and clone derivatives | 8KiB |http://wiki.stm32duino.com/index.php?title=Maple_Mini|
32
23
33
-
## Flash instructions
34
-
35
-
The `make flash` target will use openocd to upload the bootloader to an attached board.
36
-
By default, the Makefile assumes you're using a STLink v2 based probe, but you can override this by overriding `OOCD_INTERFACE` variable. For example:
37
-
38
-
make OOCD_INTERFACE=interface/cmsis-dap.cfg flash
39
24
40
25
## Overriding defaults
41
26
Local makefile settings can be set by creating a `local.mk`, which is automatically included.
42
27
43
-
Here is an example `local.mk` that changes the default target to the STLink/v2 and uses an unmodified STLink/v2 to flash it.
28
+
Here is an example `local.mk` that changes the default target to the MAPLEMINI.
44
29
45
30
TARGET ?= STLINK
46
-
OOCD_INTERFACE ?= interface/stlink-v2.cfg
47
31
48
32
## Using the bootloader
49
33
### Building for the bootloader
50
-
The bootloader occupies the lower 8KiB of flash, so your application must offset its flash contents by 8KiB. This can be done by modifying your linker script or flags as appropriate.
34
+
The bootloader occupies the lower 8KiB or 16KiB of flash, so your application must offset its flash contents by 8KiB or 16KiB. This can be done by modifying your linker script or flags as appropriate.
51
35
52
36
### Switching to the bootloader
53
37
The bootloader can be built to look for arbitrary patterns, but the default for the STM32F103 target looks for a magic value stored in the RTC backup registers. Writing the magic value and then resetting will run the bootloader instead of the main application.
38
+
When compiling with the DOUBLE_TAP option, the bootloader can be activated by double-tapping the reset button.
54
39
55
40
## Licensing
56
41
All contents of the dapboot project are licensed under terms that are compatible with the terms of the GNU Lesser General Public License version 3.
57
42
58
43
Non-libopencm3 related portions of the dapboot project are licensed under the less restrictive ISC license, except where otherwise specified in the headers of specific files.
0 commit comments