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

Commit 1ce3013

Browse files
committed
Merge branch 'working' of github.com:adamgreen/gcc4mbed into working
2 parents e0ac3d8 + 30e5b4a commit 1ce3013

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
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 2017 Sebastian Viviani (https://developer.mbed.org/users/guilly/)
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

samples/HelloWorld/makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ DEVICES := DISCO_F407VG \
2727
B96B_F446VE \
2828
NUCLEO_F072RB \
2929
NUCLEO_F103RB \
30-
NUCLEO_L053R8
30+
NUCLEO_L053R8 \
31+
NUCLEO_F303K8
32+
3133
GCC4MBED_DIR := ../..
34+
3235
NO_FLOAT_SCANF := 1
3336
NO_FLOAT_PRINTF := 1
3437

3538
include $(GCC4MBED_DIR)/build/gcc4mbed.mk
39+

samples/rtos_basic/makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ DEVICES := DISCO_F407VG \
2424
NUCLEO_F446RE \
2525
B96B_F446VE \
2626
NUCLEO_F072RB \
27-
NUCLEO_F103RB
27+
NUCLEO_F103RB \
28+
NUCLEO_F303K8
29+
2830
GCC4MBED_DIR := ../..
31+
2932
NO_FLOAT_SCANF := 1
3033
NO_FLOAT_PRINTF := 1
3134
MBED_LIBS := rtos

0 commit comments

Comments
 (0)