Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
20c23c31
Commit
20c23c31
authored
May 01, 2014
by
Damien George
Browse files
Merge pull request #536 from lurch/patch-1
Add flashboard target to the stmhal Makefile to run dfu-util
parents
28dfbc2b
ed9d8d63
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/Makefile
View file @
20c23c31
...
...
@@ -13,6 +13,8 @@ USBDEV_DIR=usbdev
FATFS_DIR
=
fatfs
CC3K_DIR
=
cc3k
DFU
=
../tools/dfu.py
# may need to prefix dfu-util with sudo
DFU_UTIL
=
dfu-util
CROSS_COMPILE
=
arm-none-eabi-
...
...
@@ -189,6 +191,12 @@ OBJ += $(BUILD)/pins_$(BOARD).o
all
:
$(BUILD)/flash.dfu
.PHONY
:
flashboard
flashboard
:
$(BUILD)/flash.dfu
$(ECHO)
"Writing
$<
to the board"
$(Q)$(DFU_UTIL)
-a
0
-D
$<
$(BUILD)/flash.dfu
:
$(BUILD)/flash0.bin $(BUILD)/flash1.bin
$(ECHO)
"Create
$@
"
$(Q)$(PYTHON)
$(DFU)
-b
0x08000000:
$(BUILD)
/flash0.bin
-b
0x08020000:
$(BUILD)
/flash1.bin
$@
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment