I am currently trying to use some of the functions in the TI provided platform library. I included platform.h at along with my code but was met with the following errors during the linking stage:
Invoking: C6000 Linker
****************************
<Linking>
undefined first referenced
symbol in file
--------- ----------------
platform_device_close ./Source/****.obj
platform_device_open ./Source/****.obj
platform_device_read ./Source/****.obj
platform_device_write ./Source/****.obj
platform_errno ./Source/****.obj
platform_init ./Source/****.obj
In order to resolve this issue I located this post:
Based on this post. I added the following lines to my app.cfg file:
/* Load the platform package */
var Platform = xdc.loadPackage('ti.platform.evmc6657l');
I then was met with new issues:
Invoking: XDCtools
"C:/ti/ccs930/xdctools_3_60_02_34_core/xs" --xdcpath="C:/ti/bios_6_76_03_01/packages;C:/ti/edma3_lld_2_12_05_30E/packages;C:/ti/pdk_c665x_2_0_16/packages;C:/ti/ipc_3_50_04_08/packages;C:/ti/ndk_3_61_01_01/packages;C:/ti/uia_2_30_01_02/packages;C:/ti/bios_6_76_03_01/packages;C:/ti/openmp_dsp_c665x_2_06_03_00/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6657 -r release -c "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c6000_8.3.5" --compileOptions "-g" "../app.cfg"
configuring app.xe66 from package/cfg/app_pe66.cfg ...
subdir_rules.mk:12: recipe for target 'build-458218673-inproc' failed
js: "C:/****/app.cfg", line 66: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: C:\ti\pdk_c665x_2_0_16\packages\ti\platform\evmc6657l\package.xdc found along the package path, but no schema file was found. Ensure that the package 'ti.platform.evmc6657l' is completely built.
I once again found a forum post detailing my issue:
Running that line with the neccesary changes to the XDCPATH variable to match my versions once again throws errors:
making package.mak (because of package.bld) ...
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor='Sun Microsystems Inc.'
js: "./config.bld", line 16: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.targets.elf' along the path: 'C:/ti/ccs930/xdctools_3_60_02_34_core/packages;../../..;'. Ensure that th
e package path is set correctly.
Once again I found a forum post detailing my issue:
This post claims the 'ti.targets.elf' package resides in the "bios_6_76_03_01" directory. I double checked and it made sure this directory was included in my path and it was. I am running out of ideas to try and all I want to be able to do is use the functions defined in platform.h and I am not sure why I am running into all of this trouble. Any help would be appreciated. Thank you