Hello,
I am trying to generate and compile the demo application of Fls (FlsApp.c) present in (ti-processor-sdk-rtos-j721e-evm-07_03_00_07\mcusw\mcal_drv\mcal\examples\Fls\fls_app) from ti-processor-sdk-rtos-j721e-evm-07_03_00_07.
Below mentioned are the steps I am following, to do so I am referring the document (given in MCAL package-->ti-processor-sdk-rtos-j721e-evm-07_03_00_07/mcusw/mcal_drv/docs/drv_docs/mcusw_c_ug_top.html)
1. Setup Build Environment : Edited the rules.make file ( as per the information given in the document) (mentioned below rules.make)
2. Did the CCS (code composer studio setup as well the strawberry Perl) setup.
3. Steps to build in windows environment : I downloaded the desired version of tools for Windows as per the information given in the document.
4. Build Everything MCAL: Then when I am trying to give the command gmake -s all for Windows from command windows in (mcusw/build) it is giving me this error(refer the screenshot attached) , I am not able to proceed further to generate and compile the demo application.
rules.make :
#
#
# Copyright (c) 2019 Texas Instruments Incorporated
#
# All rights reserved not granted herein.
#
# Limited License.
#
# Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
# license under copyrights and patents it now or hereafter owns or controls to make,
# have made, use, import, offer to sell and sell ("Utilize") this software subject to the
# terms herein. With respect to the foregoing patent license, such license is granted
# solely to the extent that any such patent is necessary to Utilize the software alone.
# The patent license shall not apply to any combinations which include this software,
# other than combinations with devices manufactured by or for TI ("TI Devices").
# No hardware patent is licensed hereunder.
#
# Redistributions must preserve existing copyright notices and reproduce this license
# (including the above copyright notice and the disclaimer and (if applicable) source
# code license limitations below) in the documentation and/or other materials provided
# with the distribution
#
# Redistribution and use in binary form, without modification, are permitted provided
# that the following conditions are met:
#
# * No reverse engineering, decompilation, or disassembly of this software is
# permitted with respect to any software provided in binary form.
#
# * any redistribution and use are licensed by TI for use only with TI Devices.
#
# * Nothing shall obligate TI to provide you with source code for the software
# licensed and provided to you in object code.
#
# If software source code is provided to you, modification and redistribution of the
# source code are permitted provided that the following conditions are met:
#
# * any redistribution and use of the source code, including any resulting derivative
# works, are licensed by TI for use only with TI Devices.
#
# * any redistribution and use of any object code compiled from the source code
# and any resulting derivative works, are licensed by TI for use only with TI Devices.
#
# Neither the name of Texas Instruments Incorporated nor the names of its suppliers
#
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# DISCLAIMER.
#
# THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
################################################################################
# Build Environment (Edit Below)
# Default build environment, Supported options (Windows_NT / linux)
################################################################################
export OS ?= linux
################################################################################
# MCUSW Configurations (Edit Below)
################################################################################
# Select to build MCAL & its example applications (baremetal)
# Select to MCUSS demo applications (tirtos)
# Possible options (tirtos/baremetal)
export BUILD_OS_TYPE ?= baremetal
# Utilities directory. This is required only if the build machine is Windows.
# - specify the installation directory of utility which supports POSIX commands
# (eg: Cygwin installation or MSYS installation).
# This could be in CCS install directory as in c:/ti/ccsv7/utils/cygwin or
# the XDC install bin folder $(XDC_INSTALL_PATH)/bin
ifeq ($(OS),Windows_NT)
export utils_PATH ?= D:\ti\ccs1010\ccs\utils\cygwin
endif
# Enable MCUSW to log messages in console (UART) or CCS console
export MCUSW_UART_ENABLE ?= FALSE
ifeq ($(OS),Windows_NT)
SDK_INSTALL_PATH ?= D:/ti
else
#Paths for linux machine
SDK_INSTALL_PATH ?= $(abspath ../../)
endif
################################################################################
# MCUSW Configurations Ends
################################################################################
TOOLS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)
# Default board
# Supported values are printed in "make -s help" option.
#
# default board and soc
export BOARD ?= j721e_evm
export SOC ?= j721e
#Default AUTOSAR Version
AUTOSAR_VERSION ?= 431
################################################################################
# Other user configurable variables
################################################################################
# Default to m4 build depending on BOARD selected!!
ifeq ($(BOARD),$(filter $(BOARD), j721e_sim j721e_evm j7200_evm))
CORE ?= mcu1_0
endif
export CORE
# Default Build Profile
# Supported Values: debug | release
export BUILD_PROFILE ?= release
# Treat compiler warning as error
# Supported Values: yes | no
export TREAT_WARNINGS_AS_ERROR ?= yes
################################################################################
# Configure toolchain paths
################################################################################
# J721E specific tool versions
ifeq ($(BOARD),$(filter $(BOARD), j721e_sim j721e_evm j7200_evm))
CGT_C7X_VERSION=1.4.2.LTS
CGT_C6X_VERSION=8.3.7
endif
# J721E common tool versions
CGT_ARM_VERSION=20.2.0.LTS
CG_XML_VERSION=2_61_00
BIOS_VERSION=6_83_02_07
XDC_VERSION=3_61_04_40_core
GCC_ARCH64_VERSION=9.2-2019.12
GCC_ARCH64_BIN_PREFIX_STR=aarch64-none-elf
################################################################################
# Dependent toolchain paths variables
################################################################################
export TOOLCHAIN_PATH_R5 ?= $(TOOLS_INSTALL_PATH)/ti-cgt-arm_$(CGT_ARM_VERSION)
export MCUSW_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/mcusw
export PDK_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/pdk_jacinto_07_03_00_29/packages
export CG_XML_BIN_INSTALL_PATH ?= $(TOOLS_INSTALL_PATH)/cg_xml_$(CG_XML_VERSION)/bin
export BIOS_INSTALL_PATH ?= $(TOOLS_INSTALL_PATH)/bios_$(BIOS_VERSION)
export XDC_INSTALL_PATH ?= $(TOOLS_INSTALL_PATH)/xdctools_$(XDC_VERSION)
ifeq ($(SOC),$(filter $(SOC), j721e))
export C6X_GEN_INSTALL_PATH ?= $(TOOLS_INSTALL_PATH)/ti-cgt-c6000_$(CGT_C6X_VERSION)
export C7X_GEN_INSTALL_PATH ?= $(TOOLS_INSTALL_PATH)/ti-cgt-c7000_$(CGT_C7X_VERSION)
endif
ifeq ($(OS),Windows_NT)
#Paths for windows machine
export TOOLCHAIN_PATH_GCC_ARCH64 ?= $(TOOLS_INSTALL_PATH)/gcc-linaro-$(GCC_ARCH64_VERSION)-i686-mingw32_aarch64-elf
else
#Paths for linux machine
export TOOLCHAIN_PATH_GCC_ARCH64 ?= $(TOOLS_INSTALL_PATH)/gcc-arm-$(GCC_ARCH64_VERSION)-x86_64-aarch64-none-elf
endif
export TOOLCHAIN_PATH_A53 ?= $(TOOLCHAIN_PATH_GCC_ARCH64)
export TOOLCHAIN_PATH_A72 ?= $(TOOLCHAIN_PATH_GCC_ARCH64)
export GCC_ARCH64_BIN_PREFIX ?= $(GCC_ARCH64_BIN_PREFIX_STR)
ifeq ($(AUTOSAR_VERSION), 421)
export AUTOSAR_VERSION ?= 421
endif
ifeq ($(AUTOSAR_VERSION), 431)
export AUTOSAR_VERSION ?= 431
endif
################################################################################
# Other advanced configurable variables
################################################################################
#use <module>_PATH variable as makefile internally expects PATH variable this way for external component path
export pdk_PATH := $(PDK_INSTALL_PATH)
export mcal_PATH := $(MCUSW_INSTALL_PATH)/mcal_drv/mcal
export mcal_test_PATH := $(MCUSW_INSTALL_PATH)/mcal_drv/mcal_test
ifeq ($(BUILD_OS_TYPE),baremetal)
export autosarConfigSrc_PATH ?= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples_config
else
export autosarConfigSrc_PATH ?= $(MCUSW_INSTALL_PATH)/mcuss_demos/mcal_config
endif
export bios_PATH := $(BIOS_INSTALL_PATH)
export xdc_PATH := $(XDC_INSTALL_PATH)
XDCPATH = $(bios_PATH)/packages;$(xdc_PATH)/packages;$(pdk_PATH);
export XDCPATH
export mcuss_demo_PATH := $(MCUSW_INSTALL_PATH)/mcuss_demos
export ROOTDIR := $(PDK_INSTALL_PATH)
#Autosar basic software include path provided by AUTOSAR stack
ifeq ($(BUILD_OS_TYPE),baremetal)
export autosarBSWInc_PATH ?= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/Bsw_Stubs
export autosarCompilerTypes_PATH ?= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/Bsw_Stubs/AsrGnrl/inc
else
export autosarBSWInc_PATH ?= $(MCUSW_INSTALL_PATH)/mcuss_demos/Bsw_Stubs
export autosarCompilerTypes_PATH ?= $(MCUSW_INSTALL_PATH)/mcuss_demos/Bsw_Stubs/AsrGnrl/inc
endif
# Set Core Build Profile depending on BUILD_PROFILE value
export BUILD_PROFILE_$(CORE) ?= $(BUILD_PROFILE)
# Default PACKAGE_SELECT build flag
# Supported values: all
export PACKAGE_SELECT ?= all
# Disable recursive building of example dependencies
export DISABLE_RECURSE_DEPS ?= no
# Default C++ build flag, yes or no
export CPLUSPLUS_BUILD ?= no
#Default MCAL config - use base directory
MCAL_CONFIG ?= 0
# Get config path for each component
MCAL_COMP_DIR_LIST = Adc Can Dio Eth EthTrcv Gpt Spi Wdg Pwm CddIpc Fls Icu
define GET_MCAL_COMP_CONFIG_PATH
ifeq ($(wildcard $(MCUSW_INSTALL_PATH)/mcal_drv/mcal_test/ut_config/$(1)/config/config_$(MCAL_CONFIG)/.*),)
# Specified config directory not found, default to base config directory
$(1)_CONFIG_PATH += $(autosarConfigSrc_PATH)/$(1)_Demo_Cfg/output/generated/soc/$(SOC)/$(CORE)/include
else
$(1)_CONFIG_PATH += $(MCUSW_INSTALL_PATH)/mcal_drv/mcal_test/ut_config/$(1)/config/config_$(MCAL_CONFIG)
endif
endef
$(foreach MCAL_COMP,$(MCAL_COMP_DIR_LIST),$(eval $(call GET_MCAL_COMP_CONFIG_PATH,$(MCAL_COMP))))
#Autosar generated config include files
#Can be list of directories separated by space.
#Should include path to each modules pre compile header path
#Should include path to each modules <Mod>_Memmap.h
export autosarConfig_PATH = $(foreach MCAL_COMP,$(MCAL_COMP_DIR_LIST),$($(MCAL_COMP)_CONFIG_PATH))
#Default SECTTI SIZE INFORMATION
export SECTTI_SIZE_INFO ?= no
#Default SECTTI tool
export SECTTI ?= $(CG_XML_BIN_INSTALL_PATH)/sectti
# include other dependent files
ifeq ($(MAKERULEDIR), )
#Makerule path not defined, define this and assume relative path from ROOTDIR
export MAKERULEDIR := $(PDK_INSTALL_PATH)/ti/build/makerules
endif
include $(MAKERULEDIR)/build_config.mk
include $(MAKERULEDIR)/platform.mk
include $(MCUSW_INSTALL_PATH)/build/makerules/env.mk
I wanted to know, whether I am following the correct approach or any steps I am missing? If not can you please let me know a desired way how can I build the demo application in this case for Fls.
Regards,
Kamia





