RTSC lesson 1 test launch loader error [message #1091307] |
Wed, 21 August 2013 06:16  |
Eclipse User |
|
|
|
Running the test application in lesson 1 of RTSC (http://rtsc.eclipse.org/docs-tip/RTSC_Module_Primer/Lesson_1) fails. Below is the transcript of the session:
user:~/TST/RTSCexamples/lesson1$ gmake all
'/opt/ti/xdctools_3_25_00_48'/xs xdc.tools.configuro -c '/opt/ti/ccsv5/tools/compiler/c6000_7.4.2' -t ti.targets.C64P -p ti.platforms.sim64Pxx -o cfgsite prog.cfg
making package.mak (because of package.bld) ...
generating interfaces for package cfgsite (because package/package.xdc.inc is older than package.xdc) ...
configuring prog.x64P from package/cfg/prog_p64P.cfg ...
cl64P package/cfg/prog_p64P.c ...
'/opt/ti/ccsv5/tools/compiler/c6000_7.4.2'/bin/cl6x -q -@cfgsite/compiler.opt -c prog.c
'/opt/ti/ccsv5/tools/compiler/c6000_7.4.2'/bin/cl6x -q -z -c prog.obj cfgsite/linker.cmd -o prog.out -l '/opt/ti/ccsv5/tools/compiler/c6000_7.4.2'/lib/rts64plus.lib
user:~/TST/RTSCexamples/lesson1$ gmake test
'/opt/ti/xdctools_3_25_00_48'/xs xdc.tools.loader prog.out
js: "/opt/ti/xdctools_3_25_00_48/packages/xdc/tools/loader/Main.xs", line 59: XDC runtime error: wrong type of argument: __params
gmake: *** [test] Error 1
I am a newbie with RTSC, which is why I am doing the lessons, but I believe I have tracked it down to a mismatch in the formal and actual parameters in the call to create in the platform instance in xdc.tools.loader.Main.xs:
m = versStat.output.match(/__PLAT__ = (.+)$/m);
if (!m) {
inst.cmdr.error("program file contains no platform information");
}
var platMod = xdc.useModule(m[1] + '.Platform');
var platInst = platMod.create("", null);
I think platMod.create eventually resolves to xdc.platform.IPlatform (from sim64Pxxx) where create takes only one parameter:
instance:
/*!
* ======== create ========
* Constructor for IPlatform instances.
*
* @param(name) the name of the platform instance being created
*
* This name is the suffix of the platform
* specification supplied in the build script after
* the platform name (and optional ':') prefix has
* been removed. So the platform instance name
* "joes.platform.foo:bar" results in the name "bar"
* and the name "joes.platform.foo" result in the name
* "".
*/
create(string name);
I change the last line shown in Main.xs to:
var platInst = platMod.create("");
and the program ran properly. I'm not sure if I have made a correct change or if I am just doing something wrong. Please let me know.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04726 seconds