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.

CddIpc Compilation Error even after including all dependency files mentioned in User Guide and Make file

Hello Team,

In  ti-processor-sdk-rtos-j721e-evm-08_05_00 MCAL for CddIpc driver , we are getting compilation error  while compiling ipc_mailbox.c 

Please find the attached Error screenshot

Please let us know what are the dependency files required for compilation.

Regards,

Pradeep R

  • Hi Pradeep,

    CDD IPC has dependency on ti-processor-sdk-rtos-j721e-evm-08_05_00_11/mcusw/mcal_drv/mcal/CddIpc/ipc_baremetal_hw folder. While compiling at our end it incudes the below files from driver

    Can you please check whether all the files are included at you end ?

    and also as include ti-processor-sdk-rtos-j721e-evm-08_05_00_11/mcusw/mcal_drv/mcal/CddIpc/ipc_baremetal_hw folder to avoid compilation issues

    Regards

    Tarun Mukesh

  • Hello Tarun,

    Please find the inclusions that we do for CddIpc

     Please find the compiler inclusion file

    -D_EMPTY
    -g -ms
    -DMAKEFILE_BUILD -c -qq -pdsw225
    --endian=little -mv7R5
    --abi=eabi -ea.ser5f -ea.oer5f
    --symdebug:dwarf
    --embed_inline_assembly
    --float_support=vfpv3d16
    --code_state=16 -O2 -s
    -DBUILD_MCU1_0
    -DBUILD_MCU
    -DSOC_J721E
    -DPOWER_STATE_NOT_SUPPORTED
    -DOSB_TOOL=OSB_ticgt
    -DTS_ARCH_FAMILY=TS_ARM
    -DTS_ARCH_DERIVATE=TS_TDA4VMCR5
    -DATOMICS_USE_GENERIC_IMPL=0
    -DOS_DEVELOPMENT_SANITY_CHECKS=0
    -DOS_MEMMAP=0 
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/source/config
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/source/config/ARM
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/source/config/ARM/TDA4VMCR5
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/output/generated/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/source/stubs
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/source/application
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/test_base/Compile/IN/CddIpc_ComTest_1/source/boards/TDA4XEVM_SCOS
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Atomics_TS_TxDxM1I0R0/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Base_TS_TxDxM5I2R0/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/tools/toolchain/ti-cgt-arm_20.2.7.LTS/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Compiler_TS_TxDxM1I0R0/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Compiler_TS_TxDxM1I0R0/include/ARM/ticgt
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/src
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/MCAL/ti/osal/TaskP.h
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Os_TS_T31D46M6I1R0/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Platforms_TS_T31DxM4I0R0/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Rte_TS_TxDxM6I10R0/include
    -IC:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/Ts5Atl_TS_TxDxM2I0R0/include
    

    Also these are the inclusions that is present as part of CddIpc make files.

    McalExt_GEN_FILES += $(wildcard $(McalExt_OUTPUT_PATH)/include/Cdd_*.h)
    McalExt_GEN_FILES += $(wildcard $(McalExt_OUTPUT_PATH)/src/Cdd_*.c)
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/include
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/src
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/MCAL/ti/osal/TaskP.h
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/include

    #EB_Automotive_Makefile

    CddIpc_src_FILES += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/src/Cdd_Ipc.c
    CddIpc_src_FILES += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/src/Cdd_IpcIrq.c
    CddIpc_src_FILES += $(wildcard $(McalExt_OUTPUT_PATH)/src/Cdd_*.c)
    CddIpc_src_FILES += $(wildcard $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/src/ipc_*.c)
    CddIpc_src_FILES += $(wildcard $(McalExt_CORE_PATH)/MCAL_Delivery/CddIpc/ipc_baremetal_hw/soc/V1/ipc_*.c)
    CddIpc_src_FILES += $(wildcard $(McalExt_CORE_PATH)/MCAL_Delivery/CddIpc/ipc_baremetal_hw/mailbox_hw/V0/priv/hw_mailbox.c)
    ifeq ($(TS_BUILD_POST_BUILD_BINARY),TRUE)
    # If the post build binary shall be built do
    # not compile any files other then the postbuild files.
    CddIpc_src_FILES :=
    endif

    Actually we are getting error during compilation of ipc_mailbox,c file , as per above attached screenshot

    Regards,

    Pradeep R

  • Pradeep,

    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/include

    I see you have included only ipc_baremetal_hw/include folder , Can you include entire ipc_baremetal_hw folder ?

    For instance ipc_mailbox.h file is not present in  ipc_baremetal_hw/include it is present in  ipc_baremetal_hw/src folder.

    To avoid this please include the enitre ipc_baremetal_hw folder and check

    Regards

    Tarun Mukesh

  • Hello Tarun,

    AS mentioned by you, 

    McalExt_GEN_FILES += $(wildcard $(McalExt_OUTPUT_PATH)/include/Cdd_*.h)
    McalExt_GEN_FILES += $(wildcard $(McalExt_OUTPUT_PATH)/src/Cdd_*.c)
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/include
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/src
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/MCAL/ti/osal/TaskP.h
    CC_INCLUDE_PATH += $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw

    but still same error is coming "error: identifier "Mailbox_Poll_Task" is undefined"

    "C:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/src/ipc_mailbox.c", line 122: error: identifier "Mailbox_Poll_Task" is undefined
    "C:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/src/ipc_mailbox.c", line 443: error: type name is not allowed
    "C:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/src/ipc_mailbox.c", line 443: error: expected a ";"
    "C:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/src/ipc_mailbox.c", line 443: error: identifier "n" is undefined
    4 errors detected in the compilation of "C:/work/workspace/ACP-8.8.7_S32G399_GHS_21203_ti/Tresos/plugins/McalExt_TS_T31D46M1I0R0/MCAL_Delivery/mcal/CddIpc/ipc_baremetal_hw/src/ipc_mailbox.c".

    Please let me know if anymore change is required

    Regards,

    Pradeep R

  • Pradeep,

    This looks very strange to me.

    Can you include pdk_jacinto_08_05_00_36/packages/ti/drv/ipc/ path and check ? 

    We have moved dependency from PDK layer but still want to check .

    Regards

    Tarun Mukesh

  • Hello Tarun,

    Even after including pdk_jacinto_08_05_00_36/packages/ti/drv/ipc/ path, we are still getting same error.

    Regards,

    Pradeep R

  • Hello Pradeep,

    Please remove this path pdk_jacinto_08_05_00_36/packages/ti/drv/ipc/ from include folder which I told you earlier.

    $(McalExt_CORE_PATH)/MCAL_Delivery/mcal/ path is in your include list right ? if not please add this path.

    I think i found the problem here,

    We have defined IPC_EXCLUED_POLLED_RX as part of our makefile, that is the reason we aren't getting the issue while compilation.

      

    Include all the definitions which are present in our make file also in yours , then you will not face the issue.

    This function is being used for " ifndef  IPC_EXCLUED_POLLED_RX "

    Remaining errors i think are due to declaration of "uint32 n " in the for loop. Can you check it by declaring it the above along with other variables in API ?

    I hope these will fix your issues pradeep.

    Regards

    Tarun Mukesh

  • Hello Tarun,

    Thankyou for the feedback.

    I will try to include all dependency files as mentioned.

    Also as per our discussion over Call, we will check with ARM CLANG 1.3.0 LTS compiler and  comeback if issue still exists

    Regards,

    Pradeep R