Other Parts Discussed in Thread: FFTLIB
Hi there,
I am trying to get one of these unit tests running from fftlib_3_1_0_0. The examples is in ti/fftlib/src/fft_omp_dp_1d_r2c_d.c. After setting up the project in the usual way for RTSC and adding the required libraries to be linked, I get the following warnings:
"configPkg/linker.cmd", line 131: warning #10068-D: no matching section warning #10247-D: creating output section ".tdata" without a SECTIONS specification warning #10247-D: creating output section ".tbss" without a SECTIONS specification warning #10247-D: creating output section ".mem_ddr" without a SECTIONS specification warning #10247-D: creating output section ".mem_l2" without a SECTIONS specification warning #10247-D: creating output section ".mem_msm" without a SECTIONS specification Finished building target: "fft_example.out"
Because of these warnings and because in the code there are spots where it says "#pragma DATA_SECTION(x_i, ".mem_ddr");", I amended the omp_config.cfg as:
program.sectMap[".mem_ddr"] = new Program.SectionSpec(); // FFT specific stuff program.sectMap[".mem_l2"] = new Program.SectionSpec(); // FFT specific stuff program.sectMap[".mem_msm"] = new Program.SectionSpec(); // FFT specific stuff program.sectMap[".mem_l2"].loadSegment = "L2SRAM"; // FFT specific stuff program.sectMap[".mem_ddr"].loadSegment = "DDR3"; // FFT specific stuff program.sectMap[".mem_msm"].loadSegment = "MSMCSRAM";// FFT specific stuff
When I try to run theprogram on the DSP, it will yield the error for some cores:
[C66xx_1] lib_emt_init() return error! (1)
which after checking the returned value corresponds to: LIB_EMT_ERROR_RMANINIT (-3) /**< Failure. RMAN initialization. */
The map file has some lines where it says UNINITIALIZED like
.mem_l2 0 00800000 00016000 UNINITIALIZED 00800000 00016000 main.obj (.mem_l2)
I do not exactly know what is wrong here. Do you maybe have some omp-config file for these unit tests? Also, what is the difference between defining these sections in a linker command file and in the omp-config file?
Thank you very much for your help.