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
b6af4c81
Commit
b6af4c81
authored
Jun 20, 2014
by
Windel Bouwman
Browse files
Added hexfile target
parent
74c71018
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/Makefile
View file @
b6af4c81
...
...
@@ -196,7 +196,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_FATFS:.c=.o))
OBJ
+=
$(
addprefix
$(BUILD)
/,
$(SRC_CC3K:.c=.o)
)
OBJ
+=
$(BUILD)
/pins_
$(BOARD)
.o
all
:
$(BUILD)/firmware.dfu
all
:
$(BUILD)/firmware.dfu
$(BUILD)/firmware.hex
.PHONY
:
deploy
...
...
@@ -210,6 +210,10 @@ $(BUILD)/firmware.dfu: $(BUILD)/firmware.elf
$(Q)$(OBJCOPY)
-O
binary
-j
.text
-j
.data
$^
$(BUILD)
/firmware1.bin
$(Q)$(PYTHON)
$(DFU)
-b
0x08000000:
$(BUILD)
/firmware0.bin
-b
0x08020000:
$(BUILD)
/firmware1.bin
$@
$(BUILD)/firmware.hex
:
$(BUILD)/firmware.elf
$(ECHO)
"Create
$@
"
$(Q)$(OBJCOPY)
-O
ihex
$<
$@
$(BUILD)/firmware.elf
:
$(OBJ)
$(ECHO)
"LINK
$@
"
$(Q)$(LD)
$(LDFLAGS)
-o
$@
$(OBJ)
$(LIBS)
...
...
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