Part Number: AM3358
Build RTOS Processor SDK project MCSPI_Loopback_evmAM335x_armExampleProject report error as below,
**** Build of configuration Debug for project MCSPI_Loopback_evmAM335x_armExampleProject ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building file: "C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi/example/mcspiLoopbackApp/am335x/armv7/bios/mcspi_loopback_arm_evmAM335x.cfg"'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_am335x_1_0_11/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/uia_2_21_02_07/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti/gcc-arm-none-eabi-6-2017-q1-update" "C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi/example/mcspiLoopbackApp/am335x/armv7/bios/mcspi_loopback_arm_evmAM335x.cfg"
'Building file: "C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi/example/mcspiLoopbackApp/src/mcspiLoopbackApp.c"'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -DUART_V1 -DSOC_AM335x -DBUILDCFG_MOD_SPI -DevmAM335x -I"C:/ti/pdk_am335x_1_0_11/packages/MyExampleProjects/MCSPI_Loopback_evmAM335x_armExampleProject" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include/newlib-nano" -I"C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi" -I"C:/ti/pdk_am335x_1_0_11/packages" -I"C:/ti/pdk_am335x_1_0_11/packages/ti/starterware/board/am335x" -I"C:/ti/pdk_am335x_1_0_11/packages/ti/starterware/include/am335x" -I"C:/ti/pdk_am335x_1_0_11/packages/ti/starterware/include" -I"/packages" -I"C:/ti/gcc-arm-none-eabi-6-2017-q1-update/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -c -finstrument-functions -MMD -MP -MMD -MP -MF"mcspiLoopbackApp.d" -MT"mcspiLoopbackApp.o" @"configPkg/compiler.opt" -o"mcspiLoopbackApp.o" "C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi/example/mcspiLoopbackApp/src/mcspiLoopbackApp.c"
subdir_rules.mk:9: recipe for target 'mcspiLoopbackApp.o' failed
configuring mcspi_loopback_arm_evmAM335x.xa8fg from package/cfg/mcspi_loopback_arm_evmAM335x_pa8fg.cfg ...
subdir_rules.mk:19: recipe for target 'build-814306177-inproc' failed
In file included from C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi/example/mcspiLoopbackApp/src/mcspiLoopbackApp.c:47:0:
C:/ti/xdctools_3_50_03_33_core/packages/xdc/cfg/global.h:39:28: fatal error: C:/ti/pdk_am335x_1_0_11/packages/MyExampleProjects/MCSPI_Loopback_evmAM335x_armExampleProject/Debug/configPkg/package/cfg/mcspi_loopback_arm_evmAM335x_pa8fg.h: No such file or directory
#include xdc_cfg__xheader__
^
compilation terminated.
gmake: *** [mcspiLoopbackApp.o] Error 1
js: "C:/ti/pdk_am335x_1_0_11/packages/ti/drv/spi/example/mcspiLoopbackApp/am335x/armv7/bios/mcspi_loopback_arm_evmAM335x.cfg", line 163: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: C:\ti\pdk_am335x_1_0_11\packages\ti\starterware\soc\package.xdc found along the package path, but no schema file was found. Ensure that the package 'ti.starterware.soc' is completely built.
"./package/cfg/mcspi_loopback_arm_evmAM335x_pa8fg.cfg", line 181
xdctools_3_50_03_33_core\gmake.exe: *** [package/cfg/mcspi_loopback_arm_evmAM335x_pa8fg.xdl] Error 1
js: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-814306177-inproc] Error 1
gmake: *** [build-814306177] Error 2
subdir_rules.mk:16: recipe for target 'build-814306177' failed
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Open the .cfg file, and compare with other example projects, other project/s cfg file doesn't have the loadPackage(ti.starterware.soc'). And I don't find soc package in the soc path, it is under binary directory.
Question:
Is soc package must for this example? why other project doesn't have?
How to make this project build successfully.


