Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lpc43s37 #4

Merged
merged 9 commits into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
417 changes: 417 additions & 0 deletions .cproject

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ The demo applications have been tested on the following boards:

using the following compilers:

* GCC 5.2 for ARM Cortex-M compiler (GNU ARM Embedded Toolchain - https://launchpad.net/gcc-arm-embedded)
* GCC 7.2 for ARM Cortex-M compiler (GNU ARM Embedded Toolchain - https://launchpad.net/gcc-arm-embedded)
* IAR 6.4 for ARM compiler (IAR Systems - https://www.iar.com/iar-embedded-workbench/)
* Keil MDK 5.3 for ARM compiler (ARM Keil - http://www2.keil.com/mdk5/)
* MinGW 7.1 for Windows (MinGW - http://www.mingw.org/)
Expand Down
52 changes: 52 additions & 0 deletions build/apps/demo_lpc43s37/demo_lpc43s37-m0/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
####################################################################################################
# \file makefile
# \brief Makefile for demo_lpc43s37-m0 application
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Locating the root directory
ROOT_DIR := ../../../..

# Project name
PROJECT_NAME := demo_lpc43s37-m0

# Build type
BUILD_TYPE := APP

# Projects that need to be build before the project or containing necessary include paths
PROJECT_DEPENDENCIES :=

# Libraries needed by the project
PROJECT_LIBS = libs/nano-os \
$(TARGET_BSP) \
$(TARGET_DEPENDENCIES) \
libs/nano-os-segger-rtt-link


# Including common makefile definitions
include $(ROOT_DIR)/build/make/generic_makefile


# Rules for building the source files
$(BIN_DIR)/$(OUTPUT_NAME): $(BIN_DEPENDENCIES)
@echo "Linking $(notdir $@)..."
$(DISP)$(LD) $(LINK_OUTPUT_CMD) $@ $(LDFLAGS) $(OBJECT_FILES) $(LIBS) $(TARGET_LIB_DIRS) $(TARGET_LIBS)



32 changes: 32 additions & 0 deletions build/apps/demo_lpc43s37/demo_lpc43s37-m0/makefile.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
####################################################################################################
# \file makefile.inc
# \brief Makefile for the include files of demo_lpc43s37-m0 application
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Application directory
APPLICATION_DIR := $(ROOT_DIR)/src/apps/demo_lpc43s37

# Source directories
SOURCE_DIRS := $(APPLICATION_DIR)/demo_lpc43s37-m0 \
$(APPLICATION_DIR)/common

# Project specific include directories
PROJECT_INC_DIRS := $(PROJECT_INC_DIRS) \
$(SOURCE_DIRS)
52 changes: 52 additions & 0 deletions build/apps/demo_lpc43s37/demo_lpc43s37-m4/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
####################################################################################################
# \file makefile
# \brief Makefile for demo_lpc43s37-m4 application
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Locating the root directory
ROOT_DIR := ../../../..

# Project name
PROJECT_NAME := demo_lpc43s37-m4

# Build type
BUILD_TYPE := APP

# Projects that need to be build before the project or containing necessary include paths
PROJECT_DEPENDENCIES :=

# Libraries needed by the project
PROJECT_LIBS = libs/nano-os \
$(TARGET_BSP) \
$(TARGET_DEPENDENCIES) \
libs/nano-os-segger-rtt-link


# Including common makefile definitions
include $(ROOT_DIR)/build/make/generic_makefile


# Rules for building the source files
$(BIN_DIR)/$(OUTPUT_NAME): $(BIN_DEPENDENCIES)
@echo "Linking $(notdir $@)..."
$(DISP)$(LD) $(LINK_OUTPUT_CMD) $@ $(LDFLAGS) $(OBJECT_FILES) $(LIBS) $(TARGET_LIB_DIRS) $(TARGET_LIBS)



32 changes: 32 additions & 0 deletions build/apps/demo_lpc43s37/demo_lpc43s37-m4/makefile.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
####################################################################################################
# \file makefile.inc
# \brief Makefile for the include files of demo_lpc43s37-m4 application
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Application directory
APPLICATION_DIR := $(ROOT_DIR)/src/apps/demo_lpc43s37

# Source directories
SOURCE_DIRS := $(APPLICATION_DIR)/demo_lpc43s37-m4 \
$(APPLICATION_DIR)/common

# Project specific include directories
PROJECT_INC_DIRS := $(PROJECT_INC_DIRS) \
$(SOURCE_DIRS)
46 changes: 46 additions & 0 deletions build/bsps/bsp_lpc43s37/bsp_lpc43s37-m0/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
####################################################################################################
# \file makefile
# \brief Makefile for bsp_lpc43s37-m0 BSP
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Locating the root directory
ROOT_DIR := ../../../..

# Project name
PROJECT_NAME := bsp_lpc43s37-m0

# Build type
BUILD_TYPE := LIB

# Projects that need to be build before the project or containing necessary include paths
PROJECT_DEPENDENCIES := libs/nano-os


# Including common makefile definitions
include $(ROOT_DIR)/build/make/generic_makefile


# Rules for building the source files
$(BIN_DIR)/$(OUTPUT_NAME): $(BIN_DEPENDENCIES)
@echo "Creating archive $(notdir $@)..."
$(DISP)$(AR) $(ARFLAGS) $@ $(OBJECT_FILES)



37 changes: 37 additions & 0 deletions build/bsps/bsp_lpc43s37/bsp_lpc43s37-m0/makefile.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
####################################################################################################
# \file makefile.inc
# \brief Makefile for the include files of bsp_lpc43s37-m0 BSP
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Library directory
BSP_DIR := $(ROOT_DIR)/src/bsps
LIBRARY_DIR := $(BSP_DIR)/bsp_lpc43s37/bsp_lpc43s37-m0

# Source directories
SOURCE_DIRS := $(LIBRARY_DIR) \
$(LIBRARY_DIR)/$(COMPILER_NAME) \
$(LIBRARY_DIR)/../common \
$(LIBRARY_DIR)/../common/device

# Project specific include directories
PROJECT_INC_DIRS := $(PROJECT_INC_DIRS) \
$(BSP_DIR) \
$(foreach LIB_DIR, $(SOURCE_DIRS), $(LIB_DIR))

46 changes: 46 additions & 0 deletions build/bsps/bsp_lpc43s37/bsp_lpc43s37-m4/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
####################################################################################################
# \file makefile
# \brief Makefile for bsp_lpc43s37-m4 BSP
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Locating the root directory
ROOT_DIR := ../../../..

# Project name
PROJECT_NAME := bsp_lpc43s37-m4

# Build type
BUILD_TYPE := LIB

# Projects that need to be build before the project or containing necessary include paths
PROJECT_DEPENDENCIES := libs/nano-os


# Including common makefile definitions
include $(ROOT_DIR)/build/make/generic_makefile


# Rules for building the source files
$(BIN_DIR)/$(OUTPUT_NAME): $(BIN_DEPENDENCIES)
@echo "Creating archive $(notdir $@)..."
$(DISP)$(AR) $(ARFLAGS) $@ $(OBJECT_FILES)



37 changes: 37 additions & 0 deletions build/bsps/bsp_lpc43s37/bsp_lpc43s37-m4/makefile.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
####################################################################################################
# \file makefile.inc
# \brief Makefile for the include files of bsp_lpc43s37-m4 BSP
# \author C. Jimenez
# \copyright Copyright(c) 2017 Cedric Jimenez
#
# This file is part of Nano-OS.
#
# Nano-OS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Nano-OS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Nano-OS. If not, see <http://www.gnu.org/licenses/>.
####################################################################################################

# Library directory
BSP_DIR := $(ROOT_DIR)/src/bsps
LIBRARY_DIR := $(BSP_DIR)/bsp_lpc43s37/bsp_lpc43s37-m4

# Source directories
SOURCE_DIRS := $(LIBRARY_DIR) \
$(LIBRARY_DIR)/$(COMPILER_NAME) \
$(LIBRARY_DIR)/../common \
$(LIBRARY_DIR)/../common/device

# Project specific include directories
PROJECT_INC_DIRS := $(PROJECT_INC_DIRS) \
$(BSP_DIR) \
$(foreach LIB_DIR, $(SOURCE_DIRS), $(LIB_DIR))

17 changes: 9 additions & 8 deletions build/make/compilers/arm-gcc-cortex-m.compiler
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
COMPILER_NAME=gcc

# Toolchain path
TOOLCHAIN_PATH = C:/gcc_arm_cortex_m_r_5.2/bin
TOOLCHAIN_PATH = C:/gcc_arm_cortex_m_7.2
TOOLCHAIN_PREFIX = arm-none-eabi-
AS = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)gcc.exe
CC = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)gcc.exe
CXX = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)g++.exe
LD = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)ld.exe
AR = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)ar.exe
OBJCOPY = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)objcopy.exe
SIZE = $(TOOLCHAIN_PATH)/$(TOOLCHAIN_PREFIX)size.exe
AS = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)gcc.exe
CC = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)gcc.exe
CXX = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)g++.exe
LD = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)ld.exe
AR = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)ar.exe
OBJCOPY = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)objcopy.exe
SIZE = $(TOOLCHAIN_PATH)/bin/$(TOOLCHAIN_PREFIX)size.exe


# Build input command
BUILD_INPUT_CMD=-c
Expand Down
2 changes: 1 addition & 1 deletion build/make/targets/arm-gcc-efm32zg222.target
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TARGET_DEPENDENCIES=
TARGET_INC_DIRS=

# Target specific lib directories
TARGET_LIB_DIRS=-L$(TOOLCHAIN_PATH)/../arm-none-eabi/lib/armv6-m -L$(TOOLCHAIN_PATH)/../lib/gcc/arm-none-eabi/5.2.1/armv6-m
TARGET_LIB_DIRS=-L$(TOOLCHAIN_PATH)/arm-none-eabi/lib/thumb/v6-m -L$(TOOLCHAIN_PATH)/lib/gcc/arm-none-eabi/7.2.1/thumb/v6-m

# Target specific libraries
TARGET_LIBS=-lgcc -lc -lnosys
Expand Down
2 changes: 1 addition & 1 deletion build/make/targets/arm-gcc-kl25z128.target
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TARGET_DEPENDENCIES=
TARGET_INC_DIRS=

# Target specific lib directories
TARGET_LIB_DIRS=-L$(TOOLCHAIN_PATH)/../arm-none-eabi/lib/armv6-m -L$(TOOLCHAIN_PATH)/../lib/gcc/arm-none-eabi/5.2.1/armv6-m
TARGET_LIB_DIRS=-L$(TOOLCHAIN_PATH)/arm-none-eabi/lib/thumb/v6-m -L$(TOOLCHAIN_PATH)/lib/gcc/arm-none-eabi/7.2.1/thumb/v6-m

# Target specific libraries
TARGET_LIBS=-lgcc -lc -lnosys
Expand Down
Loading