Skip to content

Commit

Permalink
Update installer package for v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Mar 27, 2023
1 parent ce72454 commit 8655e65
Show file tree
Hide file tree
Showing 14 changed files with 276 additions and 745 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
{
"configurations": [
{
"name": "Debug Arm (Cortex-debug)",
"cwd":"${workspaceRoot}",
"executable": "${workspaceFolder}/build/${config:program_file}",
"loadFiles": ["${workspaceFolder}/build/${config:program_file}"],
"symbolFiles": [{
"file": "${workspaceFolder}/build/${config:symbol_file}"
}],
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"linux": {
"gdbPath": "${config:ARM_GCC_path}/bin/arm-none-eabi-gdb",
"serverpath": "${config:OCD_path}/openocd",
},
"windows": {
"gdbPath": "${config:ARM_GCC_path}/bin/arm-none-eabi-gdb.exe",
"serverpath": "${config:OCD_path}/openocd.exe",
},
"osx": {
"gdbPath": "${config:ARM_GCC_path}/bin/arm-none-eabi-gdb",
"serverpath": "${config:OCD_path}/openocd",
},
"searchDir": ["${config:OCD_path}/scripts"],
"configFiles": ["interface/${config:M4_OCD_interface_file}", "target/${config:M4_OCD_target_file}"],
"interface": "swd",
"runToEntryPoint": "main",
"svdFile": "${config:MAXIM_PATH}/Libraries/CMSIS/Device/Maxim/${config:target}/Include/${config:target}.svd"
},
{
"name": "GDB (Arm M4)",
"type": "cppdbg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
"${config:MAXIM_PATH}/Libraries/MiscDrivers"
],
"C_Cpp.default.defines": [
"${config:board}"
"${config:board}",
"TARGET=${config:target}",
"TARGET_REV=0x4131",
"__GNUC__"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
{
"label": "build",
"type": "shell",
"command": "make -r -j 8 TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"group": "build",
"problemMatcher": []
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# /*******************************************************************************
# * Copyright (C) 2022 Maxim Integrated Products, Inc., All Rights Reserved.
# *
# * Permission is hereby granted, free of charge, to any person obtaining a
# * copy of this software and associated documentation files (the "Software"),
# * to deal in the Software without restriction, including without limitation
# * the rights to use, copy, modify, merge, publish, distribute, sublicense,
# * and/or sell copies of the Software, and to permit persons to whom the
# * Software is furnished to do so, subject to the following conditions:
# *
# * The above copyright notice and this permission notice shall be included
# * in all copies or substantial portions of the Software.
# *
# * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
# * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# * OTHER DEALINGS IN THE SOFTWARE.
# *
# * Except as contained in this notice, the name of Maxim Integrated
# * Products, Inc. shall not be used except as stated in the Maxim Integrated
# * Products, Inc. Branding Policy.
# *
# * The mere transfer of this software does not imply any licenses
# * of trade secrets, proprietary technology, copyrights, patents,
# * trademarks, maskwork rights, or any other form of intellectual
# * property whatsoever. Maxim Integrated Products, Inc. retains all
# * ownership rights.
# *******************************************************************************
# */
################################################################################
# Copyright (C) 2023 Maxim Integrated Products, Inc., All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
# OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of Maxim Integrated
# Products, Inc. shall not be used except as stated in the Maxim Integrated
# Products, Inc. Branding Policy.
#
# The mere transfer of this software does not imply any licenses
# of trade secrets, proprietary technology, copyrights, patents,
# trademarks, maskwork rights, or any other form of intellectual
# property whatsoever. Maxim Integrated Products, Inc. retains all
# ownership rights.
#
###############################################################################

# ** Readme! **
# Don't edit this file! This is the core Makefile for a MaximSDK
# project. The available configuration options can be overridden
# in "project.mk", on the command-line, or with system environment
# variables.

# See https://github.com/Analog-Devices-MSDK/VSCode-Maxim/tree/develop#build-configuration
# See https://analog-devices-msdk.github.io/msdk/USERGUIDE/#build-system
# for more detailed instructions on how to use this system.

# The detailed instructions mentioned above are easier to read than
Expand All @@ -59,10 +59,7 @@


ifeq "$(TARGET)" ""
# Default target microcontroller
TARGET := MAX78000
TARGET_UC := MAX78000
TARGET_LC := max78000
$(error TARGET must be specified!)
else
# "TARGET" has been overridden in the environment or on the command-line.
# We need to calculate an upper and lowercase version of the part number,
Expand All @@ -71,8 +68,9 @@ TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
endif

# Default board.
BOARD ?= EvKit_V1
ifeq "$(BOARD)" ""
$(error BOARD must be specified!)
endif

# *******************************************************************************
# Locate the MaximSDK
Expand Down Expand Up @@ -198,6 +196,8 @@ PROJECT ?= $(TARGET_LC)
# Compiler options

# Configuration Variables:
# - DEBUG : Set DEBUG=1 to build explicitly for debugging. This adds some additional
# symbols and sets -Og as the default optimization level.
# - MXC_OPTIMIZE_CFLAGS : Override the default compiler optimization level.
# Ex: MXC_OPTIMIZE_CFLAGS = -O2
# - PROJ_CFLAGS : Add additional compiler flags to the build.
Expand All @@ -208,7 +208,10 @@ PROJECT ?= $(TARGET_LC)
# Ex: MFLOAT_ABI = hard
# - LINKERFILE : Override the default linkerfile.
# Ex: LINKERFILE = customlinkerfile.ld

# - LINKERPATH : Override the default search location for $(LINKERFILE)
# The default search location is $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC
# If $(LINKERFILE) cannot be found at this path, then the root project
# directory will be used as a fallback.

# Select 'GCC' or 'IAR' compiler
ifeq "$(COMPILER)" ""
Expand All @@ -223,17 +226,14 @@ DEBUG = 0
endif

ifeq ($(DEBUG),1)
# Default optimization level for debug builds (make DEBUG=1 ...)
# gcc.mk checks for this flag to add some additional debug
# info to the build, and should be used when you really need to
# debug.
# Optimizes for debugging as recommended
# by GNU for code-edit-debug cycles
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
MXC_OPTIMIZE_CFLAGS := -Og
endif

# Fallback default optimizes for debugging as recommended
# by GNU for code-edit-debug cycles
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options
MXC_OPTIMIZE_CFLAGS ?= -Og
# Default level if not building for release or explicitly for debug
MXC_OPTIMIZE_CFLAGS ?= -O2

# Set compiler flags
PROJ_CFLAGS += -Wall # Enable warnings
Expand All @@ -245,21 +245,23 @@ PROJ_CFLAGS += -DMXC_ASSERT_ENABLE
# - soft
# - softfp (default if MFLOAT_ABI is not set)
MFLOAT_ABI ?= softfp
# MFLOAT_ABI must be exported to other Makefiles, who check this too
# MFLOAT_ABI must be exported to other Makefiles
export MFLOAT_ABI

# Set the default linkerfile. Since the core Makefiles later add the location of Maxim's
# linkerfiles to VPATH, and the local project directory has also been added to VPATH, Make
# will search both locations for the specified linkerfile if it can't find it by its path alone.
# The result is that overriding LINKERFILE with the filename of one of Maxim's alternate linkerfiles
# (ex: LINKERFILE=max78000_arm.ld) will work just the same as LINKERFILE=mycustom.ld
# even if mycustom.ld lives locally to this project.

ifeq "$(RISCV_CORE)" ""
# Default linkerfile is only specified for standard Arm-core projects.
# Otherwise, gcc_riscv.mk sets the appropriate riscv linkerfile.
LINKER = $(TARGET_LC).ld
LINKERFILE ?= $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC/$(LINKER)
LINKERFILE ?= $(TARGET_LC).ld
LINKERPATH ?= $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC

# Check if linkerfile exists
ifeq ("$(wildcard $(LINKERPATH)/$(LINKERFILE))","")
# Doesn't exists, attempt to use root project folder.
LINKERPATH:=.
endif

# Form full path to linkerfile. Works around MSYS2 edge case from (see MSDK-903).
LINKERFILE:=$(LINKERPATH)/$(LINKERFILE)
endif

# This path contains system-level intialization files for the target micro. Add to the build.
Expand Down Expand Up @@ -327,6 +329,16 @@ ifeq "$(MAKECMDGOALS)" ""
MAKECMDGOALS:=$(.DEFAULT_GOAL)
endif

# Enable colors when --sync-output is used.
# See https://www.gnu.org/software/make/manual/make.html#Terminal-Output (section 13.2)
ifneq ($(MAKE_TERMOUT),)
PROJ_CFLAGS += -fdiagnostics-color=always
endif

ifneq ($(FORCE_COLOR),)
PROJ_CFLAGS += -fdiagnostics-color=always
endif

# *******************************************************************************
# Include SBT config. We need to do this here because it needs to know
# the current MAKECMDGOAL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# "Makefile" that is located next to this one.

# For instructions on how to use this system, see
# https://github.com/Analog-Devices-MSDK/VSCode-Maxim/tree/develop#build-configuration
# https://analog-devices-msdk.github.io/msdk/USERGUIDE/#build-system

# **********************************************************

# Add your config here!



Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
{
"configurations": [
{
"name": "Debug Arm (Cortex-debug)",
"cwd":"${workspaceRoot}",
"executable": "${workspaceFolder}/build/${config:program_file}",
"loadFiles": ["${workspaceFolder}/build/${config:program_file}"],
"symbolFiles": [{
"file": "${workspaceFolder}/build/${config:symbol_file}"
}],
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"linux": {
"gdbPath": "${config:ARM_GCC_path}/bin/arm-none-eabi-gdb",
"serverpath": "${config:OCD_path}/openocd",
},
"windows": {
"gdbPath": "${config:ARM_GCC_path}/bin/arm-none-eabi-gdb.exe",
"serverpath": "${config:OCD_path}/openocd.exe",
},
"osx": {
"gdbPath": "${config:ARM_GCC_path}/bin/arm-none-eabi-gdb",
"serverpath": "${config:OCD_path}/openocd",
},
"searchDir": ["${config:OCD_path}/scripts"],
"configFiles": ["interface/${config:M4_OCD_interface_file}", "target/${config:M4_OCD_target_file}"],
"interface": "swd",
"runToEntryPoint": "main",
"svdFile": "${config:MAXIM_PATH}/Libraries/CMSIS/Device/Maxim/${config:target}/Include/${config:target}.svd"
},
{
"name": "GDB (Arm M4)",
"type": "cppdbg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
"${config:MAXIM_PATH}/Libraries/MiscDrivers"
],
"C_Cpp.default.defines": [
"${config:board}"
"${config:board}",
"TARGET=${config:target}",
"TARGET_REV=0x4131",
"__GNUC__"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
{
"label": "build",
"type": "shell",
"command": "make -r -j 8 TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"command": "make -r -j 8 --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"group": "build",
"problemMatcher": []
},
{
"label": "clean",
"type": "shell",
"command": "make -j 8 clean TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"command": "make -j 8 clean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"group": "build",
"problemMatcher": []
},
{
"label": "clean-periph",
"type": "shell",
"command": "make -j 8 distclean TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"command": "make -j 8 distclean --output-sync=target --no-print-directory TARGET=${config:target} BOARD=${config:board} MAXIM_PATH=${config:MAXIM_PATH} MAKE=make PROJECT=${config:project_name}",
"group": "build",
"problemMatcher": []
},
Expand Down
Loading

0 comments on commit 8655e65

Please sign in to comment.