summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a4ce1a9)
raw | patch | inline | side by side (parent: a4ce1a9)
author | Nicholas Chan <n-chan1@ti.com> | |
Thu, 5 Nov 2020 20:20:30 +0000 (14:20 -0600) | ||
committer | Sivaraj R <sivaraj@ti.com> | |
Sat, 7 Nov 2020 03:31:58 +0000 (21:31 -0600) |
packages/ti/diag/examples/diag_ex_component.mk | patch | blob | history | |
packages/ti/diag/examples/wwdt_example_app/makefile_early | [new file with mode: 0644] | patch | blob |
packages/ti/diag/examples/wwdt_example_app/makefile_late | [new file with mode: 0644] | patch | blob |
packages/ti/diag/examples/wwdt_example_app/makefile_perm | [new file with mode: 0644] | patch | blob |
packages/ti/diag/examples/wwdt_example_app/makefile_perm_fifty | [new file with mode: 0644] | patch | blob |
diff --git a/packages/ti/diag/examples/diag_ex_component.mk b/packages/ti/diag/examples/diag_ex_component.mk
index cd9cd9893d86ce01dc8f816f2ea1748b986fa653..c047c87476b9c9e7d587b14bc1a8d842ad68782f 100644 (file)
diag_ex_SOCLIST = j721e
diag_ex_BOARDLIST = j721e_evm
diag_ex_j721e_CORELIST = mcu1_0
-diag_ex_j721e_APPCORELIST = mcu1_0
+diag_ex_j721e_APPCORELIST = mpu1_0 mcu1_0 mcu2_0 mcu3_0 mcu1_1 mcu2_1 mcu3_1 c66xdsp_1 c66xdsp_2 c7x_1
+diag_ex_j721e_LASTCORE := $(word $(words $(diag_ex_j721e_APPCORELIST)), $(diag_ex_j721e_APPCORELIST))
diag_ex_DISABLE_PARALLEL_MAKE = yes
############################
@@ -129,7 +130,7 @@ diag_ex_wwdt_perm_example_app_multicore_PKG_LIST = diag_ex_wwdt_perm_example_app
diag_ex_wwdt_perm_example_app_multicore_INCLUDE = $(diag_ex_wwdt_perm_example_app_multicore_PATH)
diag_ex_wwdt_perm_example_app_multicore_BOARDLIST = $(diag_ex_wwdt_perm_example_app_BOARDLIST)
export diag_ex_wwdt_perm_example_app_multicore_BOARDLIST
-diag_ex_wwdt_perm_example_app_multicore_$(SOC)_CORELIST = mcu2_0
+diag_ex_wwdt_perm_example_app_multicore_$(SOC)_CORELIST := $(diag_ex_$(SOC)_LASTCORE)
export diag_ex_wwdt_perm_example_app_multicore_$(SOC)_CORELIST
diag_ex_wwdt_perm_example_app_multicore_SBL_APPIMAGEGEN = no
export diag_ex_wwdt_perm_example_app_multicore_SBL_APPIMAGEGEN
@@ -173,7 +174,7 @@ diag_ex_wwdt_perm_fifty_example_app_multicore_PKG_LIST = diag_ex_wwdt_perm_fifty
diag_ex_wwdt_perm_fifty_example_app_multicore_INCLUDE = $(diag_ex_wwdt_perm_fifty_example_app_multicore_PATH)
diag_ex_wwdt_perm_fifty_example_app_multicore_BOARDLIST = $(diag_ex_wwdt_perm_fifty_example_app_BOARDLIST)
export diag_ex_wwdt_perm_fifty_example_app_multicore_BOARDLIST
-diag_ex_wwdt_perm_fifty_example_app_multicore_$(SOC)_CORELIST = mcu2_0
+diag_ex_wwdt_perm_fifty_example_app_multicore_$(SOC)_CORELIST := $(diag_ex_$(SOC)_LASTCORE)
export diag_ex_wwdt_perm_fifty_example_app_multicore_$(SOC)_CORELIST
diag_ex_wwdt_perm_fifty_example_app_multicore_SBL_APPIMAGEGEN = no
export diag_ex_wwdt_perm_fifty_example_app_multicore_SBL_APPIMAGEGEN
@@ -217,7 +218,7 @@ diag_ex_wwdt_early_example_app_multicore_PKG_LIST = diag_ex_wwdt_early_example_a
diag_ex_wwdt_early_example_app_multicore_INCLUDE = $(diag_ex_wwdt_early_example_app_multicore_PATH)
diag_ex_wwdt_early_example_app_multicore_BOARDLIST = $(diag_ex_wwdt_early_example_app_BOARDLIST)
export diag_ex_wwdt_early_example_app_multicore_BOARDLIST
-diag_ex_wwdt_early_example_app_multicore_$(SOC)_CORELIST = mcu2_0
+diag_ex_wwdt_early_example_app_multicore_$(SOC)_CORELIST := $(diag_ex_$(SOC)_LASTCORE)
export diag_ex_wwdt_early_example_app_multicore_$(SOC)_CORELIST
diag_ex_wwdt_early_example_app_multicore_SBL_APPIMAGEGEN = no
export diag_ex_wwdt_early_example_app_multicore_SBL_APPIMAGEGEN
@@ -261,16 +262,18 @@ diag_ex_wwdt_late_example_app_multicore_PKG_LIST = diag_ex_wwdt_late_example_app
diag_ex_wwdt_late_example_app_multicore_INCLUDE = $(diag_ex_wwdt_late_example_app_multicore_PATH)
diag_ex_wwdt_late_example_app_multicore_BOARDLIST = $(diag_ex_wwdt_late_example_app_BOARDLIST)
export diag_ex_wwdt_late_example_app_multicore_BOARDLIST
-diag_ex_wwdt_late_example_app_multicore_$(SOC)_CORELIST = mcu2_0
+diag_ex_wwdt_late_example_app_multicore_$(SOC)_CORELIST := $(diag_ex_$(SOC)_LASTCORE)
export diag_ex_wwdt_late_example_app_multicore_$(SOC)_CORELIST
diag_ex_wwdt_late_example_app_multicore_SBL_APPIMAGEGEN = no
export diag_ex_wwdt_late_example_app_multicore_SBL_APPIMAGEGEN
-diag_ex_EXAMPLE_LIST += diag_ex_esm_example_app
-#diag_ex_EXAMPLE_LIST += diag_ex_wwdt_perm_example_app_multicore
-#diag_ex_EXAMPLE_LIST += diag_ex_wwdt_perm_fifty_example_app_multicore
-#diag_ex_EXAMPLE_LIST += diag_ex_wwdt_early_example_app_multicore
-#diag_ex_EXAMPLE_LIST += diag_ex_wwdt_late_example_app_multicore
+diag_ex_EXAMPLE_LIST += diag_ex_esm_example_app diag_ex_wwdt_perm_example_app
+diag_ex_EXAMPLE_LIST += diag_ex_wwdt_perm_fifty_example_app diag_ex_wwdt_early_example_app
+diag_ex_EXAMPLE_LIST += diag_ex_wwdt_late_example_app
+diag_ex_EXAMPLE_LIST += diag_ex_wwdt_perm_example_app_multicore
+diag_ex_EXAMPLE_LIST += diag_ex_wwdt_perm_fifty_example_app_multicore
+diag_ex_EXAMPLE_LIST += diag_ex_wwdt_early_example_app_multicore
+diag_ex_EXAMPLE_LIST += diag_ex_wwdt_late_example_app_multicore
# ECC example
diag_ex_ecc_example_app_COMP_LIST = diag_ex_ecc_example_app
diff --git a/packages/ti/diag/examples/wwdt_example_app/makefile_early b/packages/ti/diag/examples/wwdt_example_app/makefile_early
--- /dev/null
@@ -0,0 +1,88 @@
+#
+# This file is the makefile for building Software Diagnostics WWDT Example app
+# early key written usecase (UC-3).
+#
+# Copyright (c) Texas Instruments Incorporated 2020
+#
+include $(PDK_INSTALL_PATH)/ti/build/Rules.make
+
+APP_NAME = diag_ex_wwdt_early_example_app
+
+BUILD_OS_TYPE=baremetal
+
+SRCDIR = . ../common
+INCDIR =
+
+INCDIR += $(SOC)/. ../common
+
+# List all the external components/interfaces, whose interface header files
+# need to be included for this component
+INCLUDE_EXTERNAL_INTERFACES = pdk sdr
+
+# List all the components required by the application
+ifeq ($(CSL_BUILD),$(filter $(CSL_BUILD), CSL))
+ COMP_LIST_COMMON = csl
+else
+ COMP_LIST_COMMON = csl2 csl_trim
+endif
+
+COMP_LIST_COMMON += csl_utils_common csl_uart_console
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ COMP_LIST_COMMON += csl_init osal_nonos board uart sciclient i2c
+endif
+ifeq ($(CORE),mcu1_0)
+COMP_LIST_COMMON += sdr
+endif
+# Common source files and CFLAGS across all platforms and cores
+PACKAGE_SRCS_COMMON = .
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCS_COMMON = esm.c wwdt.c diag_utils.c main_r5f_mcu1_0_early.c
+endif
+ifeq ($(CORE),mcu2_0)
+ SRCS_COMMON = diag_utils.c main_r5f_mcu2_0_early.c
+endif
+endif
+CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
+
+CFLAGS_LOCAL_COMMON += -DUART_PRINTF
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ SRCS_COMMON += unity_config.c unity.c
+ CFLAGS_LOCAL_COMMON += -DUNITY_INCLUDE_CONFIG_H
+endif
+endif
+
+# Choose linker based on core
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu1_0.lds
+endif
+ifeq ($(CORE),mcu2_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu2_0.lds
+endif
+endif
+
+# Core/SoC/platform specific source files and CFLAGS
+# Example:
+# SRCS_<core/SoC/platform-name> =
+# CFLAGS_LOCAL_<core/SoC/platform-name> =
+
+# Include common make files
+ifeq ($(MAKERULEDIR), )
+#Makerule path not defined, define this and assume relative path from ROOTDIR
+ MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
+ export MAKERULEDIR
+endif
+include $(MAKERULEDIR)/common.mk
+
+# OBJs and libraries are built by using rule defined in rules_<target>.mk
+# and need not be explicitly specified here
+
+# Nothing beyond this point
diff --git a/packages/ti/diag/examples/wwdt_example_app/makefile_late b/packages/ti/diag/examples/wwdt_example_app/makefile_late
--- /dev/null
@@ -0,0 +1,88 @@
+#
+# This file is the makefile for building Software Diagnostics WWDT Example app
+# late key written usecase (UC-4).
+#
+# Copyright (c) Texas Instruments Incorporated 2020
+#
+include $(PDK_INSTALL_PATH)/ti/build/Rules.make
+
+APP_NAME = diag_ex_wwdt_late_example_app
+
+BUILD_OS_TYPE=baremetal
+
+SRCDIR = . ../common
+INCDIR =
+
+INCDIR += $(SOC)/. ../common
+
+# List all the external components/interfaces, whose interface header files
+# need to be included for this component
+INCLUDE_EXTERNAL_INTERFACES = pdk sdr
+
+# List all the components required by the application
+ifeq ($(CSL_BUILD),$(filter $(CSL_BUILD), CSL))
+ COMP_LIST_COMMON = csl
+else
+ COMP_LIST_COMMON = csl2 csl_trim
+endif
+
+COMP_LIST_COMMON += csl_utils_common csl_uart_console
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ COMP_LIST_COMMON += csl_init osal_nonos board uart sciclient i2c
+endif
+ifeq ($(CORE),mcu1_0)
+COMP_LIST_COMMON += sdr
+endif
+# Common source files and CFLAGS across all platforms and cores
+PACKAGE_SRCS_COMMON = .
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCS_COMMON = esm.c wwdt.c diag_utils.c main_r5f_mcu1_0_late.c
+endif
+ifeq ($(CORE),mcu2_0)
+ SRCS_COMMON = diag_utils.c main_r5f_mcu2_0_late.c
+endif
+endif
+CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
+
+CFLAGS_LOCAL_COMMON += -DUART_PRINTF
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ SRCS_COMMON += unity_config.c unity.c
+ CFLAGS_LOCAL_COMMON += -DUNITY_INCLUDE_CONFIG_H
+endif
+endif
+
+# Choose linker based on core
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu1_0.lds
+endif
+ifeq ($(CORE),mcu2_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu2_0.lds
+endif
+endif
+
+# Core/SoC/platform specific source files and CFLAGS
+# Example:
+# SRCS_<core/SoC/platform-name> =
+# CFLAGS_LOCAL_<core/SoC/platform-name> =
+
+# Include common make files
+ifeq ($(MAKERULEDIR), )
+#Makerule path not defined, define this and assume relative path from ROOTDIR
+ MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
+ export MAKERULEDIR
+endif
+include $(MAKERULEDIR)/common.mk
+
+# OBJs and libraries are built by using rule defined in rules_<target>.mk
+# and need not be explicitly specified here
+
+# Nothing beyond this point
diff --git a/packages/ti/diag/examples/wwdt_example_app/makefile_perm b/packages/ti/diag/examples/wwdt_example_app/makefile_perm
--- /dev/null
@@ -0,0 +1,88 @@
+#
+# This file is the makefile for building Software Diagnostics WWDT Example app
+# permanent failure usecase (UC-1).
+#
+# Copyright (c) Texas Instruments Incorporated 2020
+#
+include $(PDK_INSTALL_PATH)/ti/build/Rules.make
+
+APP_NAME = diag_ex_wwdt_perm_example_app
+
+BUILD_OS_TYPE=baremetal
+
+SRCDIR = . ../common
+INCDIR =
+
+INCDIR += $(SOC)/. ../common
+
+# List all the external components/interfaces, whose interface header files
+# need to be included for this component
+INCLUDE_EXTERNAL_INTERFACES = pdk sdr
+
+# List all the components required by the application
+ifeq ($(CSL_BUILD),$(filter $(CSL_BUILD), CSL))
+ COMP_LIST_COMMON = csl
+else
+ COMP_LIST_COMMON = csl2 csl_trim
+endif
+
+COMP_LIST_COMMON += csl_utils_common csl_uart_console
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ COMP_LIST_COMMON += csl_init osal_nonos board uart sciclient i2c
+endif
+ifeq ($(CORE),mcu1_0)
+COMP_LIST_COMMON += sdr
+endif
+# Common source files and CFLAGS across all platforms and cores
+PACKAGE_SRCS_COMMON = .
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCS_COMMON = esm.c wwdt.c diag_utils.c main_r5f_mcu1_0_perm.c
+endif
+ifeq ($(CORE),mcu2_0)
+ SRCS_COMMON = diag_utils.c main_r5f_mcu2_0_perm.c
+endif
+endif
+CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
+
+CFLAGS_LOCAL_COMMON += -DUART_PRINTF
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ SRCS_COMMON += unity_config.c unity.c
+ CFLAGS_LOCAL_COMMON += -DUNITY_INCLUDE_CONFIG_H
+endif
+endif
+
+# Choose linker based on core
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu1_0.lds
+endif
+ifeq ($(CORE),mcu2_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu2_0.lds
+endif
+endif
+
+# Core/SoC/platform specific source files and CFLAGS
+# Example:
+# SRCS_<core/SoC/platform-name> =
+# CFLAGS_LOCAL_<core/SoC/platform-name> =
+
+# Include common make files
+ifeq ($(MAKERULEDIR), )
+#Makerule path not defined, define this and assume relative path from ROOTDIR
+ MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
+ export MAKERULEDIR
+endif
+include $(MAKERULEDIR)/common.mk
+
+# OBJs and libraries are built by using rule defined in rules_<target>.mk
+# and need not be explicitly specified here
+
+# Nothing beyond this point
diff --git a/packages/ti/diag/examples/wwdt_example_app/makefile_perm_fifty b/packages/ti/diag/examples/wwdt_example_app/makefile_perm_fifty
--- /dev/null
@@ -0,0 +1,88 @@
+#
+# This file is the makefile for building Software Diagnostics WWDT Example app
+# permanent failure (windowed) usecase (UC-2).
+#
+# Copyright (c) Texas Instruments Incorporated 2020
+#
+include $(PDK_INSTALL_PATH)/ti/build/Rules.make
+
+APP_NAME = diag_ex_wwdt_perm_fifty_example_app
+
+BUILD_OS_TYPE=baremetal
+
+SRCDIR = . ../common
+INCDIR =
+
+INCDIR += $(SOC)/. ../common
+
+# List all the external components/interfaces, whose interface header files
+# need to be included for this component
+INCLUDE_EXTERNAL_INTERFACES = pdk sdr
+
+# List all the components required by the application
+ifeq ($(CSL_BUILD),$(filter $(CSL_BUILD), CSL))
+ COMP_LIST_COMMON = csl
+else
+ COMP_LIST_COMMON = csl2 csl_trim
+endif
+
+COMP_LIST_COMMON += csl_utils_common csl_uart_console
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ COMP_LIST_COMMON += csl_init osal_nonos board uart sciclient i2c
+endif
+ifeq ($(CORE),mcu1_0)
+COMP_LIST_COMMON += sdr
+endif
+# Common source files and CFLAGS across all platforms and cores
+PACKAGE_SRCS_COMMON = .
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCS_COMMON = esm.c wwdt.c diag_utils.c main_r5f_mcu1_0_perm_fifty.c
+endif
+ifeq ($(CORE),mcu2_0)
+ SRCS_COMMON = diag_utils.c main_r5f_mcu2_0_perm_fifty.c
+endif
+endif
+CFLAGS_LOCAL_COMMON = $(PDK_CFLAGS)
+
+CFLAGS_LOCAL_COMMON += -DUART_PRINTF
+
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ SRCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/Unity/src
+ INCDIR += $(PDK_INSTALL_PATH)/ti/build/unit-test/config
+ SRCS_COMMON += unity_config.c unity.c
+ CFLAGS_LOCAL_COMMON += -DUNITY_INCLUDE_CONFIG_H
+endif
+endif
+
+# Choose linker based on core
+ifeq ($(SOC),$(filter $(SOC), j721e am64x))
+ifeq ($(CORE),mcu1_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu1_0.lds
+endif
+ifeq ($(CORE),mcu2_0)
+ EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_INSTALL_PATH)/ti/diag/examples/wwdt_example_app/j721e/linker_mcu2_0.lds
+endif
+endif
+
+# Core/SoC/platform specific source files and CFLAGS
+# Example:
+# SRCS_<core/SoC/platform-name> =
+# CFLAGS_LOCAL_<core/SoC/platform-name> =
+
+# Include common make files
+ifeq ($(MAKERULEDIR), )
+#Makerule path not defined, define this and assume relative path from ROOTDIR
+ MAKERULEDIR := $(ROOTDIR)/ti/build/makerules
+ export MAKERULEDIR
+endif
+include $(MAKERULEDIR)/common.mk
+
+# OBJs and libraries are built by using rule defined in rules_<target>.mk
+# and need not be explicitly specified here
+
+# Nothing beyond this point