Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build STM32F7 with single-point FPU.
- Loading branch information
Showing
4 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if (TOOLCHAIN STREQUAL "gcc") | ||
set(TOOLCHAIN_COMMON_FLAGS | ||
-mthumb | ||
-mcpu=cortex-m7 | ||
-mfloat-abi=hard | ||
-mfpu=fpv5-sp-d16 | ||
) | ||
set(FREERTOS_PORT GCC_ARM_CM7 CACHE INTERNAL "") | ||
|
||
elseif (TOOLCHAIN STREQUAL "clang") | ||
set(TOOLCHAIN_COMMON_FLAGS | ||
--target=arm-none-eabi | ||
-mcpu=cortex-m7 | ||
-mfpu=fpv5-sp-d16 | ||
) | ||
set(FREERTOS_PORT GCC_ARM_CM7 CACHE INTERNAL "") | ||
|
||
elseif (TOOLCHAIN STREQUAL "iar") | ||
set(TOOLCHAIN_COMMON_FLAGS | ||
--cpu cortex-m7 | ||
--fpu VFPv5_sp | ||
) | ||
set(FREERTOS_PORT IAR_ARM_CM7 CACHE INTERNAL "") | ||
|
||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ifeq ($(TOOLCHAIN),gcc) | ||
CFLAGS += \ | ||
-mthumb \ | ||
-mcpu=cortex-m7 \ | ||
-mfloat-abi=hard \ | ||
-mfpu=fpv5-sp-d16 \ | ||
|
||
else ifeq ($(TOOLCHAIN),clang) | ||
CFLAGS += \ | ||
--target=arm-none-eabi \ | ||
-mcpu=cortex-m7 \ | ||
-mfpu=fpv5-sp-d16 \ | ||
|
||
else ifeq ($(TOOLCHAIN),iar) | ||
CFLAGS += \ | ||
--cpu cortex-m7 \ | ||
--fpu VFPv5_sp \ | ||
|
||
ASFLAGS += \ | ||
--cpu cortex-m7 \ | ||
--fpu VFPv5_sp \ | ||
|
||
else | ||
$(error "TOOLCHAIN is not supported") | ||
endif | ||
|
||
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters