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.

TDA2PXEVM: TDA2PXEVM: UART3 instance on IPU1_1

Part Number: TDA2PXEVM


Hello.

I've changed file like below to move IPU1_1 for UART function.

1)

--- a/apps/src/rtos/modules/mcu_comm/SRC_FILES.MK
+++ b/apps/src/rtos/modules/mcu_comm/SRC_FILES.MK
@@ -8,6 +8,7 @@ MCU_COMM_SRCS = \
mcu_comm_ver4.c


-SRCS_$(IPU_PRIMARY_CORE) += $(MCU_COMM_SRCS)
-#SRCS_a15_0 += $(MCU_COMM_SRCS)
+SRCS_ipu1_1 += $(MCU_COMM_SRCS)

2)

diff --git a/apps/src/common/app_init/app_init_ipu1_1.c b/apps/src/common/app_init/app_init_ipu1_1.c
index 5f5654e..058d4aa 100644
--- a/apps/src/common/app_init/app_init_ipu1_1.c
+++ b/apps/src/common/app_init/app_init_ipu1_1.c
@@ -104,6 +104,8 @@ Limited License.
Int32 AlgorithmLink_VpeSwMs_initPlugin(void);
#endif

+Int32 McuCommMgr_init();
+
/**
*******************************************************************************
*
@@ -128,7 +130,13 @@ void App_init(void)
#ifdef ALG_vpeSwMs
AlgorithmLink_VpeSwMs_initPlugin();
#endif
+
+ McuCommMgr_init();
+
#endif
+
}

but, there was reference error like below

C:\psdk\vision_sdk_b2_board_playback\links_fw\src\rtos\bios_app_common\tda2px\ipu1_1>C:/psdk/ti_components/os_tools/windows/xdctools_3_32_01_22_core/xs xdc.tools.configuro --generationOnly -o C:/psdk/vision_sdk_b2_board_playback/binaries/apps/tda2px_evm_bios_all/obj/vision_sdk/tda2px-evm/ipu1_1/release/vision_sdk_configuro -t ti.targets.arm.elf.M4 -p ti.platforms.evmDRA7XX:IPU_1_1 -r release -b C:/psdk/vision_sdk_b2_board_playback/build/rtos/tda2px/config_m4.bld --cfgArgs "{mode: \"\", coreName: \"IPU1-CORE1\", platformMem: \"DDR_MEM_512M\"}" MAIN_APP_ipu1_1.cfg
# Configuro done!
# Making tda2px-evm:ipu1_1:release:vision_sdk_lib...
# Compiling tda2px-evm:ipu1_1:release:vision_sdk: C:/psdk/vision_sdk_b2_board_playback/apps/src/common/app_init/app_init_ipu1_1.c
# Linking into C:/psdk/vision_sdk_b2_board_playback/binaries/apps/tda2px_evm_bios_all/vision_sdk/bin/tda2px-evm/vision_sdk_ipu1_1_release.xem4...
#

undefined first referenced
symbol in file
--------- ----------------
McuCommMgr_init C:/psdk/vision_sdk_b2_board_playback/binaries/apps/tda2px_evm_bios_all/obj/vision_sdk/tda2px-evm/ipu1_1/release/app_init_ipu1_1.oem4

error: unresolved symbols remain
error: errors encountered during linking;
"C:/psdk/vision_sdk_b2_board_playback/binaries/apps/tda2px_evm_bios_all/visi
on_sdk/bin/tda2px-evm/vision_sdk_ipu1_1_release.xem4" not built

Can you please tell if anything is missed out due to which linking error may happen 

  • I dont see this function in the release vision sdk. So not sure where it is defined. 

    Most likely the build error is coming due to library containing this API is not added to ipu1_1, but since it is not part of the sdk, i cannot much help. Please search this API in your codebase, see which library includes this API and include this library for ipu1_1.

    Regards,

    Brijesh

  • Hello. This function was added by us to vision_sdk\apps\src\rtos\modules\mcu_comm .

    At the frist time, It was worked on IPU1_0 properly. 

    However, we want to move this module to ipu1_1 because there is too much load on ipu1_0.

    It seems that it should not simply change MK fileaks, so please guide me on which other files to edit.

  • Hi,

    Can you please check which library contains this function, most likely it would be in apps\src\rtos\modules\mcu_comm/lib folder? Then please add this library to APP_LIBS_ipu1_1 macro in apps/MAKEFILE.MK. I am assuming here that this library is generated for the ipu1_1, if not, first you would have to change make file in apps\src\rtos\modules\mcu_comm folder to build it even for ipu1_1.. 

    Regards,

    Brijesh

  • Hello.

    You said to create a library and add ipu1_1,
    The mk file does not have a lib generating part.
    If you look at SRC_FILES.mk of grpxSrc, the module originally in vision_sdk, there is no part that creates lib as shown below.

    vision_sdk\apps\src\rtos\modules\grpxSrc\SRC_FILES.MK

    SRCDIR += $($(MAKEAPPNAME)_PATH)/src/rtos/modules/grpxSrc

    SRCS_$(IPU_PRIMARY_CORE) += \
    grpxSrcLink_tsk.c \
    grpxSrcLink_cpu_load.c \
    grpxSrcLink_tidl_od_layout.c \

    ifneq ($(RADAR_ONLY),yes)
    SRCS_$(IPU_PRIMARY_CORE) += \
    grpxSrcLink_srv_calib_layout.c \
    grpxSrcLink_sved_layout.c \
    grpxSrcLink_sv_sof_layout.c \
    grpxSrcLink_OF_layout.c \
    grpxSrcLink_stereo_layout.c \
    grpxSrcLink_stereo_multiFCalg_layout.c \
    grpxSrcLink_pd_tsr_ld_layout.c \
    grpxSrcLink_pd_tsr_ld_sof_layout.c \
    grpxSrcLink_pd_tsr_ld_sof_stereo_layout.c \
    grpxSrcLink_svStandalone_layout.c \
    grpxSrcLink_svStandalone_layout2.c \
    grpxSrcLink_fcAnalytics2_layout.c \
    grpxSrcLink_sfm.c \
    grpxSrcLink_Tda3x3DSv_layout.c \
    grpxSrcLink_Tda3x2D3DSv_layout.c \
    grpxSrcLink_Tda3xRearView3DSv_layout.c \
    grpxSrcLink_metadata_draw.c \
    grpxSrcLink_rvp_layout.c

    ifeq ($(UC_semSeg),yes)
    SRCS_$(IPU_PRIMARY_CORE) += grpxSrcLink_sem_seg_layout.c
    endif

    endif

    Please guide me on how to create the lib.
    thank you

  • Hi,

    Not sure for your module, but typically sources for all modules are included in app_libs.aem4, which is not build for ipu1_1. 

    There are two options,

    1, you could build app_lib.aem4 for ipu1_1 and link it in the final binary.

    2, build your own library for your module and include in final binary..

    Regards,

    Brijesh

  • Please refer to macro AUTOSAR_APP, because when this macro is enabled, app_libs is also build for ipu1_1 core. You would have to do similar changes for option1.. 

    Regards,

    Brijesh

  • oh..thanks.. That's what I want..^^.. Let me try..thanks.

  • Hello.

    I've checked below moudles

    autosar_ipcIn

    autosar_ipcOut

    autosar_mcal_testApp

    but , Those modules uses IPU0_1.

    ex)

    SRCS_$(IPU_PRIMARY_CORE) += autosar_ipcInLink_tsk.c autosar_ipcInLink_drv.c

    IPU_PRIMARY_CORE is defined IPU0_1.

    Where can I find  AUTOSAR_APP ?

    thanks.

  • Hi,

    Which vision sdk release are you using? 

    When i search this macro in vision sdk3.8, i see it defined in below list of files..


    build/rtos/makerules/rules_m4.mk:279:ifeq ($(AUTOSAR_APP), yes)
    build/rtos/makerules/component.mk:70:ifeq ($(AUTOSAR_APP),yes)
    build/rtos/makerules/component.mk:71: vision_sdk_CFLAGS += -DAUTOSAR_APP
    build/tools_path.mk:142:ifeq ($(AUTOSAR_APP), yes)
    apps/MAKEFILE.MK:9:ifeq ($(AUTOSAR_APP), yes)
    apps/configs/defaults.mk:84:AUTOSAR_APP?=no
    apps/configs/build_makeconfig.mk:159: $(ECHO) \# AUTOSAR_APP=$(AUTOSAR_APP)
    apps/configs/autorules_footer_cfg.mk:531:export AUTOSAR_APP
    apps/configs/tda2xx_evm_linux_all/uc_cfg.mk:30:ifeq ($(AUTOSAR_APP),yes)
    apps/configs/tda2xx_evm_linux_all/cfg.mk:46:# set AUTOSAR_APP=yes for enabling autosar IPC and App
    apps/configs/tda2xx_evm_linux_all/cfg.mk:47:AUTOSAR_APP=no
    apps/configs/tda2xx_evm_bios_all/uc_cfg.mk:30:ifeq ($(AUTOSAR_APP),yes)
    apps/configs/tda2xx_evm_bios_all/cfg.mk:55:# set AUTOSAR_APP=yes for enabling autosar IPC and App
    apps/configs/tda2xx_evm_bios_all/cfg.mk:56:AUTOSAR_APP=no
    apps/src/common/app_init/app_init_ipu_secondary.c:150:#ifdef AUTOSAR_APP
    apps/src/common/app_init/app_init_ipu_secondary.c:222:#ifdef AUTOSAR_APP
    apps/src/common/app_init/app_init_ipu_secondary.c:246:#ifdef AUTOSAR_APP
    apps/src/common/app_init/app_init_ipu_primary.c:224:#ifdef AUTOSAR_APP
    apps/src/common/app_init/app_init_ipu_primary.c:249:#ifdef AUTOSAR_APP
    apps/Makefile:45:ifeq ($(AUTOSAR_APP), yes)
    links_fw/src/rtos/links_common/system/SRC_FILES.MK:13:ifeq ($(AUTOSAR_APP), yes)
    links_fw/src/rtos/links_common/system/SRC_FILES.MK:34:ifeq ($(AUTOSAR_APP), yes)
    links_fw/src/rtos/links_common/system/system_ipc_ipc_lib.c:579: #if defined (PROC_IPU2_INCLUDE) || (defined(AUTOSAR_APP) && defined( BUILD_M4_0))
    sample_app/configs/defaults.mk:84:AUTOSAR_APP?=no
    sample_app/configs/build_makeconfig.mk:159: $(ECHO) \# AUTOSAR_APP=$(AUTOSAR_APP)
    sample_app/configs/autorules_footer_cfg.mk:531:export AUTOSAR_APP

    Regards,

    Brijesh

  • sorry. I found that. thanks.