Part Number: AM5728
Tool/software: Code Composer Studio
Hi there,
I'm using processor_sdk_rtos_am57xx_4_03_00_05 and ccsv7.
I'm trying to duplicate the emac driver and create a new one that works alongside the original.
I copied the folder C:\ti\pdk_am57xx_1_0_10\packages\ti\drv\emac to C:\ti\pdk_am57xx_1_0_10\packages\ti\drv\emac_shmem
and fixed all the files and references from emac to emac_shmem.
After executing
C:\ti\pdk_am57xx_1_0_10\packages>gmake LIMIT_SOCS="am572x" LIMIT_BOARDS="maxxAM572x" LIMIT_CORES="a15_0" emac_shmem -j3
The build process of emac_shmem is successful and the output is identical to emac.
Now I'm trying to link my project with emac_shmem instead of emac. In the app.cfg:
/* Load the EMAC_Shmem packages */
var Emac_Shmem = xdc.loadPackage('ti.drv.emac_shmem');
Emac_Shmem.Settings.socType = socType;
Then when trying to build the project I get the following error messages:
'Building file: "../app.cfg"'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_04_43_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_am57xx_1_0_10/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/Users/nir.geller/Desktop/Projects/MAXX/Maxx_Firmware/projects/max_a15_v0/platform_package;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p maxxBoard -r debug -b "C:/Users/nir.geller/Desktop/Projects/MAXX/Maxx_Firmware/projects/max_a15_v0/platform_package/maxxBoard/config.bld" -c "C:/ti/gcc-arm-none-eabi-6-2017-q1-update" "../app.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.xa15fg from package/cfg/app_pa15fg.cfg ...
subdir_rules.mk:12: recipe for target 'build-146958159-inproc' failed
js: "C:/Users/nir.geller/Desktop/Projects/MAXX/Maxx_Firmware/projects/max_a15_v0/app.cfg", line 279: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: C:\ti\pdk_am57xx_1_0_10\packages\ti\drv\emac_shmem\package.xdc found along the package path, but no schema file was found. Ensure that the package 'ti.drv.emac_shmem' is completely built.
"./package/cfg/app_pa15fg.cfg", line 185
gmake.exe: *** [package/cfg/app_pa15fg.xdl] Error 1
js: "C:/ti/xdctools_3_50_04_43_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[2]: *** [build-146958159-inproc] Error 1
gmake[1]: *** [build-146958159] Error 2
gmake: *** [all] Error 2
subdir_rules.mk:9: recipe for target 'build-146958159' failed
makefile:501: recipe for target 'all' failed
**** Build Finished ****
As I understand, the component emac_shmem was built successfully.
What is this schema file that is missing? How can I make sure it is properly generated?
Am I missing something else?
Thanks,
Nir.