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.

How to step by step debug DM8168 c647x alg in CCS 5.0



Hi all:

I use dm8168 CCS5.0 Linux, dvrrdk 4.0,
1. rules.make set PROFILE_c6xdsp := debug

2. dvr_rdk/rules_c674.mk
ifeq ($(PROFILE_$(CORE)), debug)
CFLAGS_INTERNAL += --symdebug:dwarf -ms0 --opt_for_speed=5
CFLAGS_XDCINTERNAL = -Dxdc_target_name__=C674 -Dxdc_bld__profile_debug -D_DEBUG_=1
ifndef MODULE_NAME
CFLAGS_XDCINTERNAL += -Dxdc_cfg__header__='$(CONFIGURO_DIR)/package/cfg/$(XDC_HFILE_NAME)_pe674.h'
endif
LNKFLAGS_INTERNAL_PROFILE =
endif

3. make -s dvr_rdk_bios6

4. Power on TI8168 EVM board and execute ./init.sh and ./load.sh to release dsp from reset.(ttyO2 console)

5. Start CCS5 v2 and chose File->New->Target Configuration File

6. Select xds560 v2 emulator and EVMDM8168 and lunch DM8168.ccxml

7. Connect C674x_0

8. Chose File->New->Project...->Makefile Project with exiting code->next->select dvrrdk path
All file iin dvrrdk folder is added to the project

9. Chose Run->Load->Load Symbols and chose dvr_rdk/bin/firmware/dvr_rdk_fw_c6xdsp.xe674.

10. Set break point in disassembly,

11. execute ./run.sh (ttyO2 console)

12. run dsp

the code pause at the disassembly fun, together in c code,

but i have some questions:


1. when i set break point in c code, and run, c674x can not pause at the breakpoint ?
2. how can build the code in ccs5,
i do project-->build all, seems in linux no permission to run(seems not root user problem),
3.how can i just build dsp,not use build all