Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit bff1bbe

Browse files
committed
added NUCLEO_F303K8 support
1 parent 8979100 commit bff1bbe

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

build/NUCLEO_F303K8-device.mk

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2015 Larry Littlefield (https://developer.mbed.org/users/svkatielee/)
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Vendor/device for which the library should be built.
16+
MBED_DEVICE := NUCLEO_F303K8
17+
MBED_CLEAN := $(MBED_DEVICE)-MBED-clean
18+
19+
# Compiler flags which are specifc to this device.
20+
TARGETS_FOR_DEVICE := TARGET_NUCLEO_F303K8 TARGET_M4 TARGET_RTOS_M4_M7 TARGET_CORTEX_M TARGET_STM TARGET_STM32F3
21+
22+
TARGETS_FOR_DEVICE += TARGET_STM32F303K8 TARGET_FF_ARDUINO TARGET_FF_MORPHO
23+
GCC_DEFINES := $(patsubst %,-D%,$(TARGETS_FOR_DEVICE))
24+
GCC_DEFINES += -D__CORTEX_M4 -DARM_MATH_CM4 -D__FPU_PRESENT=1
25+
26+
C_FLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb-interwork
27+
ASM_FLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
28+
LD_FLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
29+
30+
31+
# Extra platform specific object files to link into file binary.
32+
DEVICE_OBJECTS :=
33+
34+
35+
# Version of MRI library to use for this device.
36+
DEVICE_MRI_LIB :=
37+
38+
39+
# Linker script to be used. Indicates what code should be placed where in memory.
40+
NUCLEO_F303K8_LSCRIPT ?= $(GCC4MBED_DIR)/external/mbed/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/STM32F303X8.ld
41+
LSCRIPT = $(NUCLEO_F303K8_LSCRIPT)
42+
43+
44+
include $(GCC4MBED_DIR)/build/device-common.mk

0 commit comments

Comments
 (0)