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.

IWR6843: Building the MMWave 3.06 SDK Mailbox MSS-DSS Exchange Unit Test

Part Number: IWR6843
Other Parts Discussed in Thread: SYSBIOS

I want to build the unit test under:

~/ti/mmwave_sdk_03_06_00_00-LTS/packages/ti/drivers/mailbox/test/xwr68xx/test_mss_dss_msg_exchange

The contents of this directory are as follows:

dss.cfg dss_mailbox_linker.cmd dssTest.mak main_dss.c main_mss.c mss.cfg mss_mailbox_linker.cmd mssTest.mak xwr68xx_mailbox_dss.map xwr68xx_mailbox_dss.xe674 xwr68xx_mailbox_mss.map xwr68xx_mailbox_mss.xer4f

Is there a way I can bring this into TI's Code Composer Studio and build it there? Or could you provide me a makefile?

Thank you!

  • Hi Alex,

    I'm investigating this now. Ping this thread by EOD tomorrow if you do not hear back.

    Best,

    Nate

  • Hi Nathan -- thanks for looking into this. Has it been resolved?

  • Hi,

    Nathan wasn't able to get to this this week, but please allow him until Tuesday after the U.S. holiday to get back to you.

    Regards,

    Tim

  • Hi Alex,

    I was able to build like this.

    Best,

    Nate

  • @Nathan Block. Okay this worked -- I was able to build it. Could you show me how to import this into CCS for debug? I was able to flash it to the board, but, I didn't get the printf statements. I even replaced them with System_printfs and no dice, so, I'd like to just see what is going on in CCS.

  • Here is my example projectspec file:

    <?xml version="1.0" encoding="UTF-8"?>

    <projectSpec>
    <project
    name="mss-mailbox"
    deviceFamily="ARM"
    isTargetManual="false"
    device="Cortex R.IWR6843"
    endianness="little"
    cgtVersion="16.9.6.LTS"
    connection="common/targetdb/connections/TIXDS2XXUSB_Connection.xml"
    toolChain="TI"
    linkerCommandFile="mss_mailbox_linker.cmd"
    description="Mailbox - MSS"
    launchWizard="false"
    configurations="Debug"
    compilerBuildOptions="
    -c
    -O0
    -eo=.oer4f
    -mv7R4
    --code_state=16
    --float_support=VFPv3D16
    --abi=eabi
    -me
    --define=SUBSYS_MSS
    --define=SOC_XWR68XX
    --define=_LITTLE_ENDIAN
    --define=DebugP_ASSERT_ENABLED
    -g
    -display_error_number
    --diag_warning=225
    --diag_wrap=off
    --little_endian
    --preproc_with_compile
    --gen_func_subsections
    --emit_warnings_as_errors
    --enum_type=int
    --define=MMWAVE_L3RAM_NUM_BANK=6
    --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0
    --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0
    --define=MMWAVE_SHMEM_BANK_SIZE=0x20000
    -i${MMWAVE_SDK_TOOLS_INSTALL_PATH}/mmwave_sdk_03_06_00_00-LTS/packages
    -i${MMWAVE_SDK_TOOLS_INSTALL_PATH}/ti-cgt-arm_16.9.6.LTS/include
    -i${MMWAVE_SDK_TOOLS_INSTALL_PATH}/xdctools_3_62_01_16_core/packages
    -i${MMWAVE_SDK_TOOLS_INSTALL_PATH}/bios_6_73_01_01/packages
    -ppd
    "
    linkerBuildOptions="
    -mv7R4
    --code_state=16
    --float_support=VFPv3D16
    --abi=eabi
    -me
    -g
    --display_error_number
    --diag_warning=225
    --diag_wrap=off
    -z
    --reread_libs
    --warn_sections
    --rom_model
    --unused_section_elimination
    --emit_warnings_as_errors
    --define
    -llibosal_xwr68xx.aer4f
    --map_file=${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/mailbox/test/xwr68xx/test_mss_dss_msg_exchange/xwr68xx_mailbox_mss.map
    -lrtsv7R4_T_le_v3D16_eabi.lib
    --define=MMWAVE_L3RAM_NUM_BANK=6
    --define=MMWAVE_SHMEM_TCMA_NUM_BANK=0
    --define=MMWAVE_SHMEM_TCMB_NUM_BANK=0
    --define=MMWAVE_SHMEM_BANK_SIZE=0x20000
    -i${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/osal/lib
    -i${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/esm/lib
    -i${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/soc/lib
    -i${MMWAVE_SDK_INSTALL_PATH}/ti/utils/testlogger/lib
    -llibosal_xwr68xx.aer4f
    -llibesm_xwr68xx.aer4f
    -llibsoc_xwr68xx.aer4f
    -llibtestlogger_xwr68xx.aer4f
    -l${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/mailbox/test/xwr68xx/test_mss_dss_msg_exchange/mss_configPkg_xwr68xx/linker.cmd
    --map_file=${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/mailbox/test/xwr68xx/test_mss_dss_msg_exchange/xwr68xx_mailbox_mss.map
    ">
    <!-- Project properties -->
    <property name="type" value="rtsc"/>
    <property name="products" value="com.ti.rtsc.SYSBIOS:6.73.01.01;com.ti.MMWAVE_SDK:03.06.00.00-LTS;"/>
    <property name="xdcToolsVersion" value="3.62.01.16_core"/>
    <property name="target" value="ti.targets.arm.elf.R4Ft"/>
    <property name="platform" value="ti.platforms.cortexR:IWR68XX:false:200"/>
    <property name="endianness" value="little"/>
    <property name="output_format" value="elf"/>
    <property name="buildProfile" value="release"/>
    <property name="configuroOptions" value="--compileOptions &quot;--enum_type=int &quot; "/>

    <!-- Project files -->
    <file path="${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/mailbox/src/mailbox.c" openOnCreation="false" excludeFromBuild="false" action="link"/>
    <file path="${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/mailbox/platform/mailbox_xwr68xx.c" openOnCreation="false" excludeFromBuild="false" action="link"/>
    <file path="${MMWAVE_SDK_INSTALL_PATH}/ti/drivers/mailbox/test/xwr68xx/test_mss_dss_msg_exchange/main_mss.c" openOnCreation="false" excludeFromBuild="false" action="link"/>
    <file path="${MMWAVE_SDK_INSTALL_PATH}/ti/platform/xwr68xx/r4f_linker.cmd" openOnCreation="false" excludeFromBuild="false" action="copy"/>

    </project>
    </projectSpec>

    But it doesn't seem to work.

    It says:

    See details below...
    Import failed for project 'projectspec' because its meta-data cannot be interpreted. Please contact support.

    Can you tell why?

  • Hello Alex,

    See details below...
    Import failed for project 'projectspec' because its meta-data cannot be interpreted. Please contact support.

    The reasons for this error can vary. A common reason is that you are missing a dependency required by the project such as a specific version of the SDK, compiler, or SYS/BIOS.

    Make sure your CCS install has the below products discovered:

    -SYS/BIOS 6.73.01

    -XDCtools 3.62.01.16

    -MMWAVE SDK 3.06.00.00

    I was able to import your projectspec without issue after resolving all dependencies.

    Thanks

    ki

  • Ki -- Sorry it took me so long to get back to you. Do you have any resources to show me how to do this or can you post some screen shots? I am using the Ubuntu version if that matters.

  • Check the list of discovered products in CCS: