Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ccc12676
authored
Jun 11, 2020
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes compilation of some algorithms on STM32F1 and STM32F7
parent
b9b46f04
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
templates/bluepill/test
+5
-0
templates/f7/Makefile
+5
-1
No files found.
templates/bluepill/test
View file @
ccc12676
...
@@ -49,6 +49,11 @@ class BluePill(DeviceUnderTestAeadUARTP):
...
@@ -49,6 +49,11 @@ class BluePill(DeviceUnderTestAeadUARTP):
self
.
ocd
=
OpenOcd
(
self
.
openocd_cfg_path
)
self
.
ocd
=
OpenOcd
(
self
.
openocd_cfg_path
)
self
.
ser
=
serial
.
Serial
(
self
.
uart_device
,
baudrate
=
115200
,
timeout
=
5
)
def
firmware_size
(
self
):
def
firmware_size
(
self
):
return
os
.
stat
(
self
.
firmware_bin_path
)
.
st_size
return
os
.
stat
(
self
.
firmware_bin_path
)
.
st_size
...
...
templates/f7/Makefile
View file @
ccc12676
...
@@ -159,7 +159,8 @@ all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET
...
@@ -159,7 +159,8 @@ all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET
OBJECTS
=
$
(
addprefix
$(BUILD_DIR)
/,
$
(
notdir
$
(
C_SOURCES:.c
=
.o
)))
OBJECTS
=
$
(
addprefix
$(BUILD_DIR)
/,
$
(
notdir
$
(
C_SOURCES:.c
=
.o
)))
vpath
%.c
$(sort
$(dir
$(C_SOURCES)))
vpath
%.c
$(sort
$(dir
$(C_SOURCES)))
# list of ASM program objects
# list of ASM program objects
OBJECTS
+=
$
(
addprefix
$(BUILD_DIR)
/,
$
(
notdir
$
(
ASM_SOURCES:.s
=
.o
)))
ASM_OBJS
=
$
(
ASM_SOURCES:.S
=
.o
)
OBJECTS
+=
$
(
addprefix
$(BUILD_DIR)
/,
$
(
notdir
$
(
ASM_OBJS:.s
=
.o
)))
vpath
%.s
$(sort
$(dir
$(ASM_SOURCES)))
vpath
%.s
$(sort
$(dir
$(ASM_SOURCES)))
$(BUILD_DIR)/%.o
:
%.c Makefile | $(BUILD_DIR)
$(BUILD_DIR)/%.o
:
%.c Makefile | $(BUILD_DIR)
...
@@ -168,6 +169,9 @@ $(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
...
@@ -168,6 +169,9 @@ $(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
$(BUILD_DIR)/%.o
:
%.s Makefile | $(BUILD_DIR)
$(BUILD_DIR)/%.o
:
%.s Makefile | $(BUILD_DIR)
$(AS)
-c
$(CFLAGS)
$<
-o
$@
$(AS)
-c
$(CFLAGS)
$<
-o
$@
$(BUILD_DIR)/%.o
:
%.S Makefile | $(BUILD_DIR)
$(AS)
-c
$(CFLAGS)
$<
-o
$@
$(BUILD_DIR)/$(TARGET).elf
:
$(OBJECTS) Makefile
$(BUILD_DIR)/$(TARGET).elf
:
$(OBJECTS) Makefile
$(CC)
$(OBJECTS)
$(LDFLAGS)
-o
$@
$(CC)
$(OBJECTS)
$(LDFLAGS)
-o
$@
$(SZ)
$@
$(SZ)
$@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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