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.

RTOS/TMDXIDK5728: SPI example linker command file missing

Part Number: TMDXIDK5728
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

The SPI example program that is located in the TI-RTOS PDK directory called, mcspiLoopbackApp.c, is not completing the compile. The problem is in the linking after the object and .map files are created. Here are version informations,

      pdk_am57xx_1_0_5

      bios_6_46_01_38

      edma3_lld_2_12_02_26

      xdctools_3_32_01_22_core

      CCSv7

The example path with the makefile is,

       /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/drv/spi/example/mcspiLoopbackApp

I have to go directly to that location to compile, and use the simple command 'make'.

I was hoping it was going to be included in the 'main' compile location for the PDK SPI examples and tests,

      /home/user01/ti/pdk_am57xx_1_0_5/packages

Here I have been trying to limit the compile with the following environment variables,

LIMIT_BOARDS=idkAM572x
LIMIT_CORES=c66x
LIMIT_SOCS=am572x

In addition main make also only creates the object files, .oe66, and no executable files to try.

===================================================================================================

make /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/bin/idkAM572x/drv_mcspi_loopback_app_c66x_release.xe66
make[1]: Entering directory `/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/drv/spi/example/mcspiLoopbackApp'
# Linking into /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/bin/idkAM572x/drv_mcspi_loopback_app_c66x_release.xe66...
#
/home/user01/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/lnk6x --emit_warnings_as_errors --warn_sections -q -e=_c_int00 --silicon_version=6600 -c  -x     /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/obj/idkAM572x/c66x/release/mcspiLoopbackApp.oe66 -l -o /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/bin/idkAM572x/drv_mcspi_loopback_app_c66x_release.xe66 -m /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/bin/idkAM572x/drv_mcspi_loopback_app_c66x_release.xe66.map -l/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/drv/spi/lib/am572x/c66/release/ti.drv.spi.ae66 -l/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66 -l/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/csl/lib/am572x/c66/release/ti.csl.ae66 -l/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/csl/example/utils/common/lib/am572x/c66/release/csl_utils_common.ae66 -l/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/drv/uart/lib/am572x/c66/release/ti.drv.uart.ae66 -l/home/user01/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/lib/libc.a
error: cannot find file "-o"
error: cannot find file
   "/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/
   bin/idkAM572x/drv_mcspi_loopback_app_c66x_release.xe66"
error: creating output section ".neardata" without a SECTIONS specification
error: creating output section ".bss" without a SECTIONS specification
error: creating output section ".text" without a SECTIONS specification
error: creating output section ".const" without a SECTIONS specification
error: creating output section ".fardata" without a SECTIONS specification
error: creating output section ".cinit" without a SECTIONS specification
error: creating output section ".stack" without a SECTIONS specification
error: creating output section ".sysmem" without a SECTIONS specification
error: creating output section ".far" without a SECTIONS specification
error: creating output section ".switch" without a SECTIONS specification
error: creating output section ".cio" without a SECTIONS specification
error: creating ".stack" section with default size of 0x400; use the -stack
   option to change the default size
error: creating ".sysmem" section with default size of 0x400; use the -heap
   option to change the default size

 undefined                                first referenced                                                                                                           
  symbol                                      in file                                                                                                                
 ---------                                ----------------                                                                                                           
 ti_sysbios_BIOS_exit__E                  /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/obj/idkAM572x/c66x/release/mcspiLoopbackApp.oe66
 ti_sysbios_BIOS_start__E                 /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/obj/idkAM572x/c66x/release/mcspiLoopbackApp.oe66
 ti_sysbios_hal_Hwi_HwiProxy_disable__E   /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<HwiP_tirtos.oe66>             
 ti_sysbios_hal_Hwi_HwiProxy_restore__E   /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<HwiP_tirtos.oe66>             
 ti_sysbios_hal_Hwi_Params__init__S       /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<HwiP_tirtos.oe66>             
 ti_sysbios_hal_Hwi_construct             /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<HwiP_tirtos.oe66>             
 ti_sysbios_hal_Hwi_destruct              /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<HwiP_tirtos.oe66>             
 ti_sysbios_hal_Hwi_enableInterrupt__E    /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<HwiP_tirtos.oe66>             
 ti_sysbios_knl_Semaphore_Params__init__S /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 ti_sysbios_knl_Semaphore_construct       /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 ti_sysbios_knl_Semaphore_destruct        /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 ti_sysbios_knl_Semaphore_pend__E         /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 ti_sysbios_knl_Semaphore_post__E         /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 ti_sysbios_knl_Task_create               /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/obj/idkAM572x/c66x/release/mcspiLoopbackApp.oe66
 xdc_runtime_Assert_raise__I              /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<Utils_tirtos.oe66>            
 xdc_runtime_Error_init__E                /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/obj/idkAM572x/c66x/release/mcspiLoopbackApp.oe66
 xdc_runtime_Main_Module__id__C           /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<Utils_tirtos.oe66>            
 xdc_runtime_Memory_alloc__E              /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 xdc_runtime_Memory_free__E               /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/osal/lib/tirtos/am572x/c66/release/ti.osal.ae66<SemaphoreP_tirtos.oe66>       
 xdc_runtime_System_printf__E             /home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/obj/idkAM572x/c66x/release/mcspiLoopbackApp.oe66

error: unresolved symbols remain
error: errors encountered during linking; "a.out" not built
make[1]: *** [/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/binary/drv_mcspi_loopback_app/bin/idkAM572x/drv_mcspi_loopback_app_c66x_release.xe66] Error 1
make[1]: Leaving directory `/home/user01/ti/pdk_am57xx_1_0_5/packages/ti/drv/spi/example/mcspiLoopbackApp'
make: *** [c66x] Error 2

===================================================================================================

Thanks