This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Add Gpt to can_profile_app RTOS

Other Parts Discussed in Thread: SYSBIOS

I built Gpt_App and  can_profile_app correctly in  psdk_rtos_auto_j7_06_02_00_21.now I want integrate Gpt into can_profile_app.I specifyied the include and source path,SRCS_COMMON in makefile.I got some complaints when i built  with the command " make -s can_profile_app BOARD=j721e_evm SOC=j721e BUILD_PROFILE=release CORE=mcu1_0 BUILD_OS_TYPE=tirtos"

error messages is below:

make -s can_profile_app BOARD=j721e_evm SOC=j721e BUILD_PROFILE=release CORE=mcu1_0 BUILD_OS_TYPE=tirtos
Nothing to be done for j721e i2c_indp
Nothing to be done for j721e i2c_profile
Nothing to be done for j721e i2c_profile_indp
Nothing to be done for j721e i2c_icss0
Nothing to be done for j721e fatfs_multi_indp
Nothing to be done for j721e fatfs_profile_indp
make[2]: *** No rule to make target 'Gpt_PBcfg.c', needed by '/home/zep/latest/psdk_rtos_auto_j7_06_02_00_21/mcusw/binary/can_profile_app/obj/j721e_evm/mcu1_0/release/Gpt_PBcfg.oer5f'.  Stop.
/home/zep/latest/psdk_rtos_auto_j7_06_02_00_21/pdk/packages/ti/build/makerules/common.mk:402: recipe for target 'mcu1_0' failed
make[1]: *** [mcu1_0] Error 2
makefile:154: recipe for target 'can_profile_app' failed
make: *** [can_profile_app] Error 2

my makefile:

BUILD_OS_TYPE=tirtos
include $(MCUSW_INSTALL_PATH)/build/Rules.make
Module_autosarConfigSrc_PATH= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples_config
APP_NAME = can_profile_app
SRCDIR = . $(autosarConfigSrc_PATH)/Can_Demo_Cfg/output/generated/soc/$(SOC)/$(CORE)/src $(autosarConfigSrc_PATH)/Dio_Demo_Cfg/output/generated/soc/$(SOC)/$(CORE)/src $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples/utils/src
SRCDIR+= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/Gpt/src
SRCDIR+= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples_config/Gpt_Demo_Cfg/output/genetated/soc/$(SOC)/$(CORE)/src
SRCDIR += $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples/Gpt/soc/$(SOC)/$(CORE)/
SRCDIR += $(app_utils_PATH)/src soc/$(SOC)/$(CORE)/
INCDIR = . $(autosarConfigSrc_PATH)/IntRtr_Cfg/soc/$(SOC)/$(CORE)/ soc/$(SOC)/$(CORE)/

INCDIR += $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/Gpt/include/
INCDIR += $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples/Gpt/
INCDIR += $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples/Gpt/soc/$(SOC)/$(CORE)/
INCDIR+= $(MCUSW_INSTALL_PATH)/mcal_drv/mcal/examples/Gpt_Demo_Cfg/output/genetated/soc/$(SOC)/$(CORE)/include/
# List all the external components/interfaces, whose interface header files
# need to be included for this component
INCLUDE_EXTERNAL_INTERFACES = pdk autosarBSW autosarConfig autosarCompiler
INCLUDE_INTERNAL_INTERFACES = can bsw_stubs_tirtos app_utils dio demo_utils
# List all the components required by the application
COMP_LIST_COMMON = can bsw_stubs_tirtos app_utils dio demo_utils
# List all the external ibs required by the application
EXT_LIB_LIST_COMMON += $(csl_LIBPATH)/$(SOC)/$(ISA_EXT)/$(BUILD_PROFILE_$(CORE))/$(csl_LIBNAME).$(LIBEXT)
# Required for sciclient required by UDMA driver
EXT_LIB_LIST_COMMON += $(sciclient_LIBPATH)/$(SOC)/$(CORE)/$(BUILD_PROFILE_$(CORE))/$(sciclient_LIBNAME).$(LIBEXT)
# Required for uart
EXT_LIB_LIST_COMMON += $(uart_LIBPATH)/$(SOC)/$(ISA_EXT)/$(BUILD_PROFILE_$(CORE))/$(uart_LIBNAME).$(LIBEXT)
#Board module
EXT_LIB_LIST_COMMON += $(board_LIBPATH)/$(BOARD)/$(ISA_EXT)/$(BUILD_PROFILE_$(CORE))/$(board_LIBNAME).$(LIBEXT)
# Required by board
EXT_LIB_LIST_COMMON += $(i2c_LIBPATH)/$(SOC)/$(ISA_EXT)/$(BUILD_PROFILE_$(CORE))/$(i2c_LIBNAME).$(LIBEXT)
INCLUDE_EXTERNAL_INTERFACES += xdc bios
SRCS_COMMON = main_tirtos.c can_profile.c CanApp_Startup.c Diotest.c Gpttest.c GptApp_Startup.c Gpt_Irq.c Gpt.c
#
EXT_LIB_LIST_COMMON += $(osal_tirtos_LIBPATH)/$(SOC)/$(ISA_EXT)/$(BUILD_PROFILE_$(CORE))/$(osal_tirtos_LIBNAME).$(LIBEXT)
# Enable XDC build for application by providing XDC CFG File per core
XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
XDC_CFG_UPDATE_$(CORE)=$(MCUSW_INSTALL_PATH)/mcuss_demos/demo_utils/overrides/$(SOC)/utils_prf_ut.cfg
EXTERNAL_LNKCMD_FILE_LOCAL = overrides/$(SOC)/$(CORE)/linker_r5_sysbios.lds
# Common source files and CFLAGS across all platforms and cores
SRCS_COMMON += Can_Cfg.c Can_PBcfg.c Dio_Lcfg.c Gpt_PBcfg.c Gpt_Cfg.c
# App utils file includes memory sections defined in this module
# which is used to check memory section corruption
SRCS_COMMON += app_utils_can.c app_utils_dio.c app_utils_gpt.c
#app_utils_gpt.c
PACKAGE_SRCS_COMMON = .
CFLAGS_LOCAL_COMMON = $(MCUSW_CFLAGS)
LNKFLAGS_LOCAL_COMMON = $(MCUSW_LNKFLAGS)
ifeq ($(MCUSW_UART_ENABLE),TRUE)
    CFLAGS_LOCAL_COMMON += -DUART_ENABLED
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 := $(PDK_INSTALL_PATH)/ti/build/makerules
  export MAKERULEDIR
endif
include $(MAKERULEDIR)/common.mk

  • Hi ,

    Based on the makefile thats attached with this thread, it seems like you are trying to add all the required sources for Gpt. I would recommend to not do this.

    The CAN profile application integrates the Dio and Can MCAL drivers.

    I would request you to check the makefile for "dio" and perform the similar changes for "gpt"

    Regards, Sujith