Other Parts Discussed in Thread: OMAP3530
I am using DSPLink and its make system to build projects for the OMAP3530.
DSPLink and its sample applications run fine.
I installed DSPLIB version dsplib_c674x_3_1_0_0_Linux in order to integrate its C-callable functions into the DSP-side code. This is the problem I'm running into:
jhemilian@server:~/dspbios_dsplink/code/apps/dft/dsp$ make -s
[DFT ] ------- DIRS ------------------ INCLUDE ------------
[DFT ] ------- DIRS ------------------ DEBUG --------------
[DFT ] ------- DIRS ------------------ EXPORT -------------
[DFT ] ------- BLDINFO --------------- DEBUG --------------
[DFT ] ------- CLEAN ----------------- DEBUG --------------
[DFT ] ------- INCLUDES -----------------------------------
[DFT ] ------- OBJECT ---------------- DEBUG --------------
Compiling main.c...
Compiling tskDft.c...
Compiling dft_config.c...
Generating DSP/BIOS configuration files ...
Compiling dspcfg_c.c...
Compiling dspcfg.s62...
[DFT ] ------- TARGET ---------------- DEBUG --------------
Generating dft.out...
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_DSP_add32 /home/jhemilian/dspbios_dsplink/source/dsplink/dsp/BUILD/OMAP3530_0/DFT/OBJ/DEBUG/tskDft.obj
error: unresolved symbols remain
error: errors encountered during linking;
"/home/jhemilian/dspbios_dsplink/source/dsplink/dsp/BUILD/OMAP3530_0/DFT/BIN/DEBUG/dft.out" not built
>> Compilation failure
make[1]: *** [dft.out.deb] Error 1
make: *** [trgdeb] Error 2
jhemilian@server:~/dspbios_dsplink/code/apps/dft/dsp$
The routine I'm calling is DSP_add32. I don't fully understand the linking process, so I do not know where the underscore (_) is being prepended. I read on a different thread that a way to resolve it might be to add _DSP_add32 = DSP_add32 as an object alias to the cfg.cmd file. The only problem is that it's a generated file, and I don't know where or how it's getting generated.
I am adding the /lib directory of DSPLIB to OSLIB_PLATFORM in c64xxp_5.xx_linux.mk, just as I added the /inc directory to OSINC_PLATFORM (and it compiles just fine).
Thanks for any help in advance.