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/AM5728: undefined reference to a15_Cache_wbInv

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Dear Team,

While my customer is merging IPC and Ethernet example, they found below build error.

Could you please provide your idea how this error can be resolved?

I'm wondering which library has 'ti_sysbios_family_arm_a15_Cache_wbInv__E' functions and how this error was resolved.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

makefile:165: recipe for target 'wk1000_a15f2.out' failed 

D:\1_work\02_dsp\TI_CCS_V8\wk1000\wk1000_a15f2\Debug\configPkg\package\cfg\app_eth_ipc_pa15fg.oa15fg:(.rodata.ti_sysbios_knl_Task_hooks__A+0x0): undefined reference to `TaskRegisterId'
D:\1_work\02_dsp\TI_CCS_V8\wk1000\wk1000_a15f2\Debug\configPkg\package\cfg\app_eth_ipc_pa15fg.oa15fg:(.rodata.ti_sysbios_knl_Task_hooks__A+0xc): undefined reference to `mySwitch'
C:\ti\pdk_am57xx_1_0_11\packages\ti\osal\lib\tirtos\a15\release\ti.osal.aa15fg(CacheP_tirtos.oa15fg): In function `CacheP_wbInv':
C:\ti\pdk_am57xx_1_0_11\packages\ti\osal/src/tirtos/CacheP_tirtos.c:62: undefined reference to `ti_sysbios_family_arm_a15_Cache_wbInv__E'
C:\ti\pdk_am57xx_1_0_11\packages\ti\osal\lib\tirtos\a15\release\ti.osal.aa15fg(CacheP_tirtos.oa15fg): In function `CacheP_Inv':
C:\ti\pdk_am57xx_1_0_11\packages\ti\osal/src/tirtos/CacheP_tirtos.c:67: undefined reference to `ti_sysbios_family_arm_a15_Cache_inv__E'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [wk1000_a15f2.out] Error 1
gmake: *** [all] Error 2
makefile:161: recipe for target 'all' failed

Thanks and Best Regards,

SI.

  • Hi SI,

    They most likely need to load the OSAL package by including the following in the .cfg file:

    /* Load the OSAL package */
    var osType = "tirtos"
    var Osal = xdc.useModule('ti.osal.Settings');
    Osal.osType = osType;
  • Hi Sahin,

    They have below code in their cfg file. Should they modify below code as you mentioned?
    Could you please explain what is difference between below code and yours?


    /* ================ Driver configuration ================ */

    /* Load the OSAL package */
    var osType = "tirtos";
    var Osal = xdc.loadPackage('ti.osal');
    Osal.Settings.osType = osType;

    /*use CSL package*/
    var socType = "am572x";
    var Csl = xdc.loadPackage('ti.csl');
    Csl.Settings.deviceType = socType;

    /* Load Profiling package */
    //var Utils = xdc.loadPackage('ti.utils.profiling');

    /* Load the uart package */
    var Uart = xdc.loadPackage('ti.drv.uart');
    //Uart.Settings.socType = socType;

    /* Load the I2C package */
    var I2c = xdc.loadPackage('ti.drv.i2c');

    /* Load the SPI package */
    var Spi = xdc.loadPackage('ti.drv.spi');
    //Spi.Settings.socType = socType;
    //Spi.Settings.enableProfiling = true;

    /* Load the Board package and set the board name */
    var Board = xdc.loadPackage('ti.board');
    Board.Settings.boardName = "idkAM572x";
    /***************************************************/


    Thanks and Best Regards,
    SI.
  • Hello SI,

    Their cfg file looks OK. Can you provide full build logs for us to look at?

    Also, please make sure they have "Group libraries to resolve backward references" checked in Project Properties > GNU Linker > Libraries.

  • Hi Sahin,

    Their SW are RTOS PSDK 5.0 and CCSv8.

    They checked "Group libraries to resolve backward references" as below.

    And their full log is attached in below.

    **** Build of configuration Debug for project wk1000_a15f2 ****
    
    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../app_eth_ipc.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/ctoolslib_2_2_0_0/packages;C:/ti/dsplib_c66x_3_4_0_0/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/framework_components_3_40_02_07/packages;C:/ti/framework_components_3_40_02_07/examples;C:/ti/imglib_c66x_3_1_1_0/packages;C:/ti/ipc_3_47_02_00/packages;C:/ti/mathlib_c66x_3_1_1_0/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/bios_6_52_00_12/packages;C:/ti/uia_2_21_02_07/packages;C:/ti/xdais_7_24_00_04/packages;C:/ti/xdais_7_24_00_04/examples;C:/ti/openmp_dsp_am57xx_2_06_02_01/packages;C:/ti/pdk_am57xx_1_0_11/packages;C:/ti/ccsv8/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.idkAM572X:host -r release -b "D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/shared/config.bld" -c "C:/ti/gcc-arm-none-eabi-6-2017-q1-update" "../app_eth_ipc.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app_eth_ipc.xa15fg from package/cfg/app_eth_ipc_pa15fg.cfg ...
    generating custom ti.sdo.utils library makefile ...
    generating custom ti.sdo.ipc library makefile ...
    generating custom ti.sysbios library makefile ... 
    	Linking with library ti.transport.ndk.nimu:./lib/am572x/a15/release/ti.transport.ndk.nimu.aa15fg
    	Linking with library ti.drv.emac:./lib/am572x/a15/release/ti.drv.emac.aa15fg
    	Linking with library ti.board:./lib/idkAM572x/a15/release/ti.board.aa15fg
    	Linking with library ti.drv.spi:./lib/a15/release/ti.drv.spi.aa15fg
    	Linking with library ti.drv.i2c:./lib/a15/release/ti.drv.i2c.aa15fg
    	Linking with library ti.drv.uart:./lib/a15/release/ti.drv.uart.aa15fg
    	Linking with library ti.csl:./lib/am572x/a15/release/ti.csl.aa15fg
    	Linking with library ti.osal:./lib/tirtos/am572x/a15/release/ti.osal.aa15fg
    Starting build of library sources ...
    making D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/sysbios/sysbios.aa15fg ...
    gmake[1]: Entering directory `D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/sysbios'
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/smp/Cache_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Clock.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Idle.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Intrinsics.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Event.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Queue.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Semaphore.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Swi_smp.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/knl/Task_smp.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateHwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateAll.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateSwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateMutexPri.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/gates/GateMutex.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/syncs/SyncSem.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/heaps/HeapBuf.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/heaps/HeapMem.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Cache.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Core.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/smp/LoggerBuf.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/smp/SysMin.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/Timer.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/TimestampProvider.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/shared/vayu/IntXbar.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/shared/vayu/TimerSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/v7a/smp/GateSmp.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/smp/Cache.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/smp/Core.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/a15/Mmu.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/gic/Hwi.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/xdcruntime/GateThreadSupport.c ...
    cla15fg C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/arm/systimer/Timer.c ...
    ara15fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o dmtimer_Timer_asm_gnu.o smp_Cache_asm_gnu.o a15_Mmu_asm_gnu.o gic_Hwi_asm_gnu.o exc_Exception_asm_gnu.o systimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Event.o knl_Queue.o knl_Semaphore.o knl_Swi_smp.o knl_Task_smp.o gates_GateHwi.o gates_GateAll.o gates_GateSwi.o gates_GateMutexPri.o gates_GateMutex.o syncs_SyncSem.o heaps_HeapBuf.o heaps_HeapMem.o hal_Cache.o hal_Core.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o smp_LoggerBuf.o smp_SysMin.o dmtimer_Timer.o dmtimer_TimestampProvider.o vayu_IntXbar.o vayu_TimerSupport.o smp_GateSmp.o smp_Cache.o smp_Core.o a15_Mmu.o gnu_ReentSupport.o gic_Hwi.o exc_Exception.o xdcruntime_GateThreadSupport.o systimer_Timer.o ...
    gmake[1]: Leaving directory `D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/sysbios'
    making D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/ipc.aa15fg ...
    gmake[1]: Entering directory `D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/ipc'
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/NameServer.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/NameServerRemoteNull.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/MultiProc.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/List.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/GateMP.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/MessageQ.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/SharedRegion.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/ListMP.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/Ipc.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/Notify.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/transports/TransportShm.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/transports/TransportShmSetup.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/family/vayu/NotifySetup.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/family/vayu/InterruptHost.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/nsremote/NameServerRemoteNotify.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/heaps/HeapMemMP.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/gates/GateHWSpinlock.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/gates/GatePeterson.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/ipc/gates/GateMPSupportNull.c ...
    ara15fg ti_sdo_utils_NameServer.o ti_sdo_utils_NameServerRemoteNull.o ti_sdo_utils_MultiProc.o ti_sdo_utils_List.o ti_sdo_ipc_GateMP.o ti_sdo_ipc_MessageQ.o ti_sdo_ipc_SharedRegion.o ti_sdo_ipc_ListMP.o ti_sdo_ipc_Ipc.o ti_sdo_ipc_Notify.o ti_sdo_ipc_transports_TransportShm.o ti_sdo_ipc_transports_TransportShmSetup.o ti_sdo_ipc_notifyDrivers_NotifyDriverShm.o ti_sdo_ipc_family_vayu_NotifySetup.o ti_sdo_ipc_family_vayu_InterruptHost.o ti_sdo_ipc_nsremote_NameServerRemoteNotify.o ti_sdo_ipc_heaps_HeapMemMP.o ti_sdo_ipc_gates_GateHWSpinlock.o ti_sdo_ipc_gates_GatePeterson.o ti_sdo_ipc_gates_GateMPSupportNull.o ...
    gmake[1]: Leaving directory `D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/ipc'
    making D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/utils.aa15fg ...
    gmake[1]: Entering directory `D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/utils'
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/UTILS.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/NameServer.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/NameServerRemoteNull.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/MultiProc.c ...
    cla15fg C:/ti/ipc_3_47_02_00/packages/ti/sdo/utils/List.c ...
    ara15fg utils_UTILS.o utils_NameServer.o utils_NameServerRemoteNull.o utils_MultiProc.o utils_List.o ...
    gmake[1]: Leaving directory `D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2/src/utils'
    Build of libraries done.
    cla15fg package/cfg/app_eth_ipc_pa15fg.c ...
    warning: xdc.runtime.Diags: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/runtime/Diags.xs", line 214: xdc.runtime.Main diags_USER7: xdc.runtime.Main.common$.diags_USER7 has been modified from its default. Diags.USER7 has been deprecated and is now equivalent to Diags.INFO. diags_INFO has also been changed from its default, so the value xdc.runtime.Diags.ALWAYS_ON from INFO will be used.
    Finished building: "../app_eth_ipc.cfg"
     
            1�� ������ ����Ǿ����ϴ�.
    making ../src/sysbios/sysbios.aa15fg ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "../S25FL.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"S25FL.d" -MT"S25FL.o"  @"configPkg/compiler.opt" -o"S25FL.o" "../S25FL.c"
    Finished building: "../S25FL.c"
     
    Building file: "../App.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"App.d" -MT"App.o"  @"configPkg/compiler.opt" -o"App.o" "../App.c"
    Finished building: "../App.c"
     
    Building file: "../main.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.o"  @"configPkg/compiler.opt" -o"main.o" "../main.c"
    ../main.c: In function 'main':
    ../main.c:151:17: warning: unused variable 'eb1' [-Wunused-variable]
         Error_Block eb1;
                     ^~~
    Finished building: "../main.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_system.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/arma_system.d" -MT"src_lk_bsp/arma_system.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/arma_system.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_system.c"
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_system.c: In function 'SystemInit':
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_system.c:36:6: warning: variable 'bd_env_status' set but not used [-Wunused-but-set-variable]
      int bd_env_status = OK;
          ^~~~~~~~~~~~~
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_system.c:35:6: warning: unused variable 'dspb_status' [-Wunused-variable]
      int dspb_status;
          ^~~~~~~~~~~
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_system.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_lib.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/arma_lib.d" -MT"src_lk_bsp/arma_lib.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/arma_lib.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_lib.c"
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_lib.c: In function 'Logo':
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_lib.c:52:10: warning: unused variable 'ver_addr' [-Wunused-variable]
      ADDRESS ver_addr;
              ^~~~~~~~
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_lib.c:51:18: warning: unused variable 'ver_data' [-Wunused-variable]
      int  i, ver[3], ver_data;
                      ^~~~~~~~
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/arma_lib.c"
     
    Building file: "../UART_soc.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"UART_soc.d" -MT"UART_soc.o"  @"configPkg/compiler.opt" -o"UART_soc.o" "../UART_soc.c"
    Finished building: "../UART_soc.c"
     
    Building file: "../SPI_soc.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"SPI_soc.d" -MT"SPI_soc.o"  @"configPkg/compiler.opt" -o"SPI_soc.o" "../SPI_soc.c"
    Finished building: "../SPI_soc.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/common_lib.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/common_lib.d" -MT"src_lk_bsp/common_lib.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/common_lib.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/common_lib.c"
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/common_lib.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/crc16.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/crc16.d" -MT"src_lk_bsp/crc16.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/crc16.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/crc16.c"
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/crc16.c"
     
    making ../src/ipc.aa15fg ...
    Building file: "../nimu_osal.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"nimu_osal.d" -MT"nimu_osal.o"  @"configPkg/compiler.opt" -o"nimu_osal.o" "../nimu_osal.c"
    Finished building: "../nimu_osal.c"
     
    gmake[1]: Nothing to be done for 'all'.
    making ../src/utils.aa15fg ...
    gmake[1]: Nothing to be done for 'all'.
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/main_uart.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/main_uart.d" -MT"src_lk_bsp/main_uart.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/main_uart.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/main_uart.c"
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/main_uart.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/init_conf.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/init_conf.d" -MT"src_lk_bsp/init_conf.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/init_conf.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/init_conf.c"
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/init_conf.c: In function 'changeInitData':
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/init_conf.c:334:7: warning: unused variable 'buf' [-Wunused-variable]
      char buf[80];
           ^~~
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/init_conf.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/parsing.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_lk_bsp/parsing.d" -MT"src_lk_bsp/parsing.o"  @"configPkg/compiler.opt" -o"src_lk_bsp/parsing.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/parsing.c"
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_lk_bsp/parsing.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/ddr_test.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_wk_test/ddr_test.d" -MT"src_wk_test/ddr_test.o"  @"configPkg/compiler.opt" -o"src_wk_test/ddr_test.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/ddr_test.c"
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/ddr_test.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/eht_test.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_wk_test/eht_test.d" -MT"src_wk_test/eht_test.o"  @"configPkg/compiler.opt" -o"src_wk_test/eht_test.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/eht_test.c"
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/eht_test.c"
     
    Building file: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/qspi_flash_test.c"
    Invoking: GNU Compiler
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/wk1000_a15f2" -I"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/include/newlib-nano" -I"D:/1_work/02_dsp/TI_CCS_V8/wk1000/shared" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"src_wk_test/qspi_flash_test.d" -MT"src_wk_test/qspi_flash_test.o"  @"configPkg/compiler.opt" -o"src_wk_test/qspi_flash_test.o" "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/qspi_flash_test.c"
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/qspi_flash_test.c: In function 'spi_test':
    D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/qspi_flash_test.c:147:25: warning: variable 'hwAttrs' set but not used [-Wunused-but-set-variable]
         QSPI_HwAttrs const *hwAttrs = NULL;
                             ^~~~~~~
    Finished building: "D:/1_work/02_dsp/TI_CCS_V8/wk1000/src_wk_test/qspi_flash_test.c"
     
    making ../src/sysbios/sysbios.aa15fg ...
    making ../src/ipc.aa15fg ...
    making ../src/utils.aa15fg ...
    gmake[2]: Nothing to be done for 'all'.
    gmake[2]: Nothing to be done for 'all'.
    gmake[2]: Nothing to be done for 'all'.
    Building target: "wk1000_a15f2.out"
    Invoking: GNU Linker
    "C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a15 -marm -Dam5726 -Dcore0 -DidkAM572x -DSOC_AM572x -DNIMU_DUAL_MAC_MODE -g -gdwarf-3 -gstrict-dwarf -Wall -mfloat-abi=hard -Wl,-Map,"wk1000_a15f2.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/ndk_2_26_00_08/packages/ti/ndk/os/lib" -L"C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0xA0000 --specs=nano.specs -o"wk1000_a15f2.out" "./App.o" "./S25FL.o" "./SPI_soc.o" "./UART_soc.o" "./main.o" "./nimu_osal.o" "./src_lk_bsp/arma_lib.o" "./src_lk_bsp/arma_system.o" "./src_lk_bsp/common_lib.o" "./src_lk_bsp/crc16.o" "./src_lk_bsp/init_conf.o" "./src_lk_bsp/main_uart.o" "./src_lk_bsp/parsing.o" "./src_wk_test/ddr_test.o" "./src_wk_test/eht_test.o" "./src_wk_test/qspi_flash_test.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lgcc -lm -lrdimon -lnosys -l:os.aa15fg -lc -Wl,--end-group 
    makefile:166: recipe for target 'wk1000_a15f2.out' failed
    C:\ti\pdk_am57xx_1_0_11\packages\ti\osal\lib\tirtos\am572x\a15\release\ti.osal.aa15fg(CacheP_tirtos.oa15fg): In function `CacheP_wbInv':
    C:\ti\pdk_am57xx_1_0_11\packages\ti\osal/src/tirtos/CacheP_tirtos.c:62: undefined reference to `ti_sysbios_family_arm_a15_Cache_wbInv__E'
    C:\ti\pdk_am57xx_1_0_11\packages\ti\osal\lib\tirtos\am572x\a15\release\ti.osal.aa15fg(CacheP_tirtos.oa15fg): In function `CacheP_Inv':
    C:\ti\pdk_am57xx_1_0_11\packages\ti\osal/src/tirtos/CacheP_tirtos.c:67: undefined reference to `ti_sysbios_family_arm_a15_Cache_inv__E'
    collect2.exe: error: ld returned 1 exit status
    gmake[1]: *** [wk1000_a15f2.out] Error 1
    gmake: *** [all] Error 2
    makefile:162: recipe for target 'all' failed
    
    **** Build Finished ****

    Thanks and Best Regards,

    SI.

  • Sahin,

    Here is more information.
    my customer found there was no error occurred when below codes were removed.

    In CpswEmacInit(),
    =============================================
    EMAC_HwAttrs_V4 cfg;
    EMAC_socGetInitCfg(0, &cfg);

    cfg.port[0].phy_addr = 0;
    cfg.port[1].phy_addr = 1;

    EMAC_socSetInitCfg(0, &cfg);

    NIMUDeviceTable[nimu_device_index++].init = &CpswEmacInit;
    #if 0
    #ifdef NIMU_DUAL_MAC_MODE
    NIMUDeviceTable[nimu_device_index++].init = &CpswEmacInit;
    #endif
    NIMUDeviceTable[nimu_device_index].init = NULL;
    #endif
    =================================================



    Thanks and Best Regards,
    SI.
  • SI,

    I don't see the relation between the code posted above and those errors, that code may have been calling the cache functions which led to the errors.

    The undefined variable "ti_sysbios_family_arm_a15_Cache_inv__E"

    is defined in

    "~\bios_6_73_00_12\packages\ti\sysbios\family\arm\a15\Cache.h"

    so looking in CacheP_tirtos.c, (which is where the variable was being used),

    #if defined (SOC_AM335x)

    #include <ti/sysbios/family/arm/a8/Cache.h>

    #elif defined (SOC_AM437x)

    #include <ti/sysbios/family/arm/a9/Cache.h>

    #elif defined (__ARM_ARCH_7A__)

    #include <ti/sysbios/family/arm/a15/Cache.h>

    #elif defined (__TI_ARM_V7M4__)

    It looks like they need to define the symbol "__ARM_ARCH_7A__ " in their project to pull in the header file with the variable definitions. 

    I hope this helps.