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.
Hi,everyone!
I want to build helloDSPdsp project in CCSv4.2.3 that can run on my hawkboard.
I made a new helloDSP.tcf file according the memorary mapping in OMAPL138GEM_SHMEM.c.
My project using the linux side DSPLINK source files using samba.
when I add the two cmd files. CCS show up following errors.
utils.loadPlatform("ti.platforms.myOMAPL138");
/* The following DSP/BIOS Features are enabled. */
bios.enableRealTimeAnalysis(prog);
bios.enableRtdx(prog);
bios.enableTskManager(prog);
bios.MEM.NOMEMORYHEAPS = 0;
bios.MEM.instance("DDR").base = 0xc7e00080;
bios.MEM.instance("DDR").len = 0x000fff80;
bios.MEM.instance("DDR").createHeap = 1;
bios.MEM.instance("DDR").heapSize = 0x00010000;
bios.MEM.create("RESET_VEC");
bios.MEM.instance("RESET_VEC").base = 0xc7e00000;
bios.MEM.instance("RESET_VEC").len = 0x00000080;
bios.MEM.instance("RESET_VEC").createHeap = 0;
bios.MEM.BIOSOBJSEG = prog.get("DDR");
bios.MEM.MALLOCSEG = prog.get("DDR");
bios.MEM.create("DSPLINKMEM");
bios.MEM.instance("DSPLINKMEM").createHeap = 0;
bios.MEM.instance("DSPLINKMEM").base = 0xc7f00000;
bios.MEM.instance("DSPLINKMEM").len = 0x00005000;
bios.MEM.create("DSPLINKMEM1");
bios.MEM.instance("DSPLINKMEM1").base = 0xc7f05000;
bios.MEM.instance("DSPLINKMEM1").len = 0x0002b000;
bios.MEM.instance("DSPLINKMEM1").createHeap = 0;
bios.MEM.create("POOLMEM");
bios.MEM.instance("POOLMEM").createHeap = 0;
bios.MEM.instance("POOLMEM").base = 0xc7f30000;
bios.MEM.instance("POOLMEM").len = 0x000d0000;
bios.LOG.create("trace");
bios.MEM.ARGSSEG = prog.get("DDR");
bios.MEM.STACKSEG = prog.get("DDR");
bios.MEM.GBLINITSEG = prog.get("DDR");
bios.MEM.TRCDATASEG = prog.get("DDR");
bios.MEM.SYSDATASEG = prog.get("DDR");
bios.MEM.OBJSEG = prog.get("DDR");
bios.MEM.BIOSSEG = prog.get("DDR");
bios.MEM.SYSINITSEG = prog.get("DDR");
bios.MEM.HWISEG = prog.get("DDR");
bios.MEM.HWIVECSEG = prog.get("DDR");
bios.MEM.RTDXTEXTSEG = prog.get("DDR");
bios.MEM.SWITCHSEG = prog.get("DDR");
bios.MEM.BSSSEG = prog.get("DDR");
bios.MEM.FARSEG = prog.get("DDR");
bios.MEM.CINITSEG = prog.get("DDR");
bios.MEM.PINITSEG = prog.get("DDR");
bios.MEM.CONSTSEG = prog.get("DDR");
bios.MEM.DATASEG = prog.get("DDR");
bios.MEM.CIOSEG = prog.get("DDR");
bios.GBL.ENABLEALLTRC = 0;
bios.GBL.ENABLEINST = 0;
bios.GBL.INSTRUMENTED = 0;
bios.GBL.INSTRUMENTED = 1;
bios.GBL.SPECIFYRTSLIB = 0;
bios.GBL.CALLUSERINITFXN = 0;
// !GRAPHICAL_CONFIG_TOOL_SCRIPT_INSERT_POINT!
prog.gen();
/*helloDSP.cmd*/
SECTIONS {
.data:DSPLINK_shmBaseAddress: fill=0xC7F05000 {} > DDR
}
[SECTIONS.]
>> WARNING: invalid compiler option -iority (ignored)
>> WARNING: invalid compiler option --trampolines (ignored)
>> WARNING: invalid compiler option --llnkrtdx.a674 (ignored)
>> WARNING: invalid compiler option --ldrivers.a674 (ignored)
>> WARNING: invalid compiler option --lsioboth.a674 (ignored)
>> WARNING: invalid compiler option --lbios6748.a674 (ignored)
>> WARNING: invalid compiler option --lbios.a674 (ignored)
>> WARNING: invalid compiler option --lrtdx64xplus.lib (ignored)
>> WARNING: invalid compiler option --lrts6740.lib (ignored)
>> WARNING: invalid compiler option -tack (ignored)
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: could not open source file "SECTIONS"
1 fatal error detected in the compilation of "SECTIONS".
Compilation terminated.
>> Compilation failure
gmake: *** [tskMessage.obj] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project helloDSP
jian gong61581 said:>> WARNING: invalid compiler option -iority (ignored)>> WARNING: invalid compiler option --trampolines (ignored)>> WARNING: invalid compiler option --llnkrtdx.a674 (ignored)>> WARNING: invalid compiler option --ldrivers.a674 (ignored)>> WARNING: invalid compiler option --lsioboth.a674 (ignored)>> WARNING: invalid compiler option --lbios6748.a674 (ignored)>> WARNING: invalid compiler option --lbios.a674 (ignored)>> WARNING: invalid compiler option --lrtdx64xplus.lib (ignored)>> WARNING: invalid compiler option --lrts6740.lib (ignored)>> WARNING: invalid compiler option -tack (ignored)
These errors look like the syntax for the linker options got messed up. For example, '-tack' should be '-stack'. And the options to link additional libraries should just have one dash instead of two. You'll need to double check your options.
jian gong61581 said:utils.loadPlatform("ti.platforms.myOMAPL138");
Is 'ti.platforms.myOMAPL138' a valid platform name?