Hi Guys,
I am working on a HEVC encoder using DSPC8681 card. Now I need to debug the dsp code of the demo. I want to know how to open a printf like trace output and how to use emulator to debug the code?
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 Guys,
I am working on a HEVC encoder using DSPC8681 card. Now I need to debug the dsp code of the demo. I want to know how to open a printf like trace output and how to use emulator to debug the code?
Hi Ruisucom,
I guess you are using MCSDK video framework? If so, please see below high level steps
1) Please disable disable optimizations.
optimization flags can be temporarily turned off by commenting out the following line in dsp\mkrel\c64x\makedefs.mk:
C_OPT_FLAGS = -mt -mw -os -o3 --optimize_with_debug --> #C_OPT_FLAGS = -mt -mw -os -o3 --optimize_with_debug
Then rebuild SV04 (make clean, make sv04)
2) connect JTAG and plug board in PCIe slot.
3) Open CCS, and create target (you can add 4 TMS320C6678 devices in order to create a quad shannon)
4) connect target, connect cores
---> If it is not a fresh start please press F8 to run the cores-->
5) In Ubuntu go to MCSDK video PCIe demo folder script and run: ./reset_dsp.sh followed by ./dnld_dsp.sh
6) In CCS: halt cores and load symbols (SV04)
7) Add Breakpoints in CCS (if required)
8) In CCS, press F8 (run free all the cores)
9) Finally in Ubuntu run ./demoSave2file.sh
Please note that delivered HEVC libraries are in release mode and you cannot step inside the lib.
thank you,
Paula