Revision 8446a3a1
| .gitmodules | ||
|---|---|---|
| 1 | 1 |
[submodule "Host/stm32flash"] |
| 2 |
path = Host/stm32flash |
|
| 2 |
path = Host/Source/stm32flash
|
|
| 3 | 3 |
url = https://git.code.sf.net/p/stm32flash/code |
| Host/Source/stm32flash | ||
|---|---|---|
| 1 |
Subproject commit 6b6b6e5f5c2870a8ea9bc69d9073a8b6b12165ef |
|
| Host/stm32flash | ||
|---|---|---|
| 1 |
Subproject commit 6b6b6e5f5c2870a8ea9bc69d9073a8b6b12165ef |
|
| README.txt | ||
|---|---|---|
| 86 | 86 |
script in the root directory: |
| 87 | 87 |
>$ ./setup.sh |
| 88 | 88 |
Follow the instructions to download the source code and compile the tool. The |
| 89 |
resulting binary path is ./Host/stm32flash/stm32flash. |
|
| 89 |
resulting binary path is ./Host/Source/stm32flash/stm32flash.
|
|
| 90 | 90 |
|
| 91 | 91 |
The setup script does not install the tool to your system path, though, since |
| 92 | 92 |
this usually requires root permissions. However, stm32flash provides a Makefile |
| 93 | 93 |
with installation capabilities. Just Follow the instructions given in the file |
| 94 |
./Host/stm32flash/INSTALL. |
|
| 94 |
./Host/Source/stm32flash/INSTALL.
|
|
| 95 | 95 |
|
| 96 | 96 |
|
| 97 | 97 |
1.2 - GCC ARM Embedded Toolchain |
| Target/Demo/flash.mk | ||
|---|---|---|
| 1 |
STM32FLASH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))../../Host/stm32flash/stm32flash |
|
| 1 |
STM32FLASH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))../../Host/Source/stm32flash/stm32flash
|
|
| 2 | 2 |
ifeq ($(OS),Windows_NT) |
| 3 | 3 |
STM32FLASH_PORT ?= COM5 |
| 4 | 4 |
else |
| setup.sh | ||
|---|---|---|
| 83 | 83 |
cd $(dirname ${BASH_SOURCE[0]})
|
| 84 | 84 |
|
| 85 | 85 |
# initialize submodule |
| 86 |
git submodule update --init ./Host/stm32flash/ |
|
| 86 |
git submodule update --init ./Host/Source/stm32flash/
|
|
| 87 | 87 |
|
| 88 |
cd ./Host/stm32flash/ |
|
| 88 |
cd ./Host/Source/stm32flash/
|
|
| 89 | 89 |
BUILD_STM32FLASH=true |
| 90 | 90 |
|
| 91 | 91 |
# test for existing bonary |
| ... | ... | |
| 119 | 119 |
printf "\n" |
| 120 | 120 |
|
| 121 | 121 |
USER_DIR=${PWD}
|
| 122 |
cd $(dirname ${BASH_SOURCE[0]})/Host/Source/SerialBoot
|
|
| 122 |
cd $(dirname ${BASH_SOURCE[0]})/Host/Source/SerialBoot/
|
|
| 123 | 123 |
BUILD_SERIALBOOT=true |
| 124 | 124 |
|
| 125 | 125 |
# test for existing binary |
Also available in: Unified diff