Other Parts Discussed in Thread: CCSTUDIO
Device : TMS320C6713
Code Composer Studio version : 3.1.0
Code Generation Tools version : 5.1.0
Build options : -q -s -pden -pds232 -o3 -fr"c:/work/LVTTS/DSP/PABX/Release" -i"." -i"c:/work/LVTTS/DSP/PABX/Code" -i"C:/SignalMaster/lsp/matlab/r12p1/rtw/sm/target" -i"C:/matlabR12/simulink/include" -i"C:/matlabR12/rtw/c/src" -i"c:/work/LVTTS/DSP/PABX/RTW Generated" -i"C:/matlabR12/rtw/c/libsrc" -i"C:/SignalMaster/lsp/smc6xx/dsp/inc" -i"c:/work/LVTTS/DSP/PABX/Lyr_Make_LIB/src" -i"c:/work/LVTTS/Software/Common" -i"c:/work/LVTTS/Software/LVTTSPABX" -i"c:/work/LVTTS/DSP/PABX/Matlab/Common" -i"c:/work/LVTTS/Software/LVFC/C++/General" -i"C:/SignalMaster/lsp/smc6xx/dsp/src" -i"c:/work/LVTTS/Software/LVFC/C/General" -d"SMC6xx" -d"C6713" -d"SM_DATALOG_SIZE=10000" -d"ENABLE_PCACHE=0" -d"MODEL=LVDigitalPabx" -d"RT" -d"NUMST=1" -d"MT=0" -d"TID01EQ=0" -d"NCSTATES=0" -d"EXT_MODE" -ml2 -ms3 -mv6710 -c -@"../../../../work/LVTTS/DSP/PABX/Release.lkf"
Link options (autogenerated file : Release.lkf) : -z -cr -heap2500 -m"./Release/LVDigitalPabx.map" -o"./Release/LVDigitalPabx.out" -stack1500 -x -i"C:/CCStudio_v3.1/C6000/rtdx/lib" -i"C:/CCStudio_v3.1/C6000/csl/lib" -i"C:/CCStudio_v3.1/C6000/xdais/lib" -i"C:/CCStudio_v3.1/C6000/bios/lib" -i"C:/CCStudio_v3.1/C6000/cgtools/lib" -l"C:/CCStudio_v3.1/C6000/cgtools/lib/rts6700.lib" (+ all the .obj listed)
Hi everybody,
We have a pretty big application (.out) running on the C6713 as part of a bigger system. This application was designed 10 years ago and was last compiled with CCS 2.0 using "Matlab/Real Time Workshop". The DSP is part a of a system using a CPU and FPGA, USB, Serial and Ethernet connection. We had a major issue that we needed to address a couple months ago. We created a new CCS 3.1 project and got rid of Matlab/RTW (we couldn't debug with a J-Tag with CCS 2.0 and Matlab).
When we run the application with CCS 3.1 loading the ".out" with the J-Tag, everything works great. When we load the ".out" using an Ethernet connection (like we should load it with our system) all the DSP memory is garbage. We have more than 15 applications (designed with CCS 3.1 not Matlab) loading and working great with the Ethernet connection. The last build (with CCS 2.0 and Matlab) works fine expect for the major issue :(
- Instead of loading the program, garbage data is loaded in memory. For the same build, the same data is loaded (so it's not random data). I created sections were I didn't put anything (so the memory shouldn't be overwrite) and it's still overwritten with garbage data.
- I compiled a version with an infinite loop at the RESET (address 0x00000000) and it result in the same garbage data in memory. So it is not a faulty program that overwrites garbage in memory.
- I noticed that there's debug info sections (to be able to debug with the C code) added in the ".out" with version 3.1 that wasn't there with CCS 2.0. This result in a ".out" file 3 times bigger than it was. But those sections are also included in the 15 applications that work great.
Does somebody have any idea how to resolve this issue? I tried a lot of things and nothing seems to work.
I don't know if I provided enough information. If you need more info don't hesitate to ask.
I hope somebody can help me, thanks in advance.
Tomy