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.

ccsv4 debuger is not correspond with source code

Other Parts Discussed in Thread: CCSTUDIO

I debug my project in ccsv4.2.4.00033 ,when break into task execute,I press F6 step over,the debuger flag is not correspond with source code,as be shown in the fig.

I have build the project many times,building is no problem.

  • Do you have optimization enabled in your build options? If so, that could affect the debug experience to varying degrees depending on the level of optimization. Since the code can get moved around quite a bit when optimization is turned on, the source line correlation could also be affected and not appear as one would expect when stepping.

    Try opening the disassembly window in CCS and step through the assembly code as that might be easier to correlate. If optimization is turned on, I would suggest turning it off at least during the debug process and then turn it back on once you have finished debugging and verifying that the code is functioning as expected.

  •  the picture of build option optimization as fllowing that doesn't turn on .

    I found a  question,when I break into task,the task name can do a breakpoint also,Therefore,debug mark move up a line,I do not know how it happened!

    The ordinary funciton cann't break on a function name.

    1.basic options

    2.Optimizations label

  • Your screenshots show that you do have different optimizations turned on. The basic optimization, code size optimization and speed optimization are all set to level 0. Even at level 0, there is quite a bit of optimization that happens which could affect debugging. Things like not being able to set breakpoints on lines which do have not debug line information associated with it are all side-effects of this. To turn off all these optimizations, change all the above settings in the GUI to be blank. Then rebuild the project and see if the debug experience changes,

  • I cann't find the optimization switch,when I try change all optimization option set to blank,then rebuild the project ,the result is the same with previously.

     

     


    **** Build of configuration Debug for project OMAPL137_AUDIO ****

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
    tcf/subdir_rules.mk:7: warning: overriding commands for target `Configuration_omapl137cfg.cmd'
    subdir_rules.mk:7: warning: ignoring old commands for target `Configuration_omapl137cfg.cmd'
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/tcf/Configuration_omapl137.tcf'
    'Invoking: TConf Script Compiler'
    "C:/Program Files/Texas Instruments/xdctools_3_22_01_21/tconf" -b -Dconfig.importPath="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages;C:/CCStudio_v3.3/bios_5_33_01/packages;" "E:/xx/TEL_Smart_DspV1_20111101/tcf/Configuration_omapl137.tcf"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/tcf/Configuration_omapl137.tcf'
    ' '
    'Building file: Configuration_omapl137cfg.s??'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="Configuration_omapl137cfg.pp"  "Configuration_omapl137cfg.s62"
    'Finished building: Configuration_omapl137cfg.s??'
    ' '
    'Building file: Configuration_omapl137cfg_c.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="Configuration_omapl137cfg_c.pp"  "Configuration_omapl137cfg_c.c"
    'Finished building: Configuration_omapl137cfg_c.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_cu.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/Matrix_cu.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_cu.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_cu.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_gpio.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/Matrix_gpio.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_gpio.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_gpio.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_ptz.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/Matrix_ptz.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_ptz.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_ptz.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_uart.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/Matrix_uart.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_uart.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/Matrix_uart.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/Xmulticast.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/Xmulticast.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/Xmulticast.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/Xmulticast.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/arpping.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/arpping.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/arpping.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/arpping.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/audctrl.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/audctrl.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/audctrl.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/audctrl.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/audproc.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -O2 --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --opt_for_speed=5 --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/audproc.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/audproc.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/audproc.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/audtopo.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/audtopo.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/audtopo.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/audtopo.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/channel.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -O2 --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --opt_for_speed=5 --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/channel.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/channel.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/channel.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/core.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/core.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/core.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/core.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/crc32.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -O2 --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --opt_for_speed=5 --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/crc32.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/crc32.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/crc32.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/dbgmsg.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/dbgmsg.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/dbgmsg.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/dbgmsg.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/flash_file.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/flash_file.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/flash_file.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/flash_file.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/intvecs.asm'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/intvecs.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/intvecs.asm"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/intvecs.asm'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/jqueue.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/jqueue.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/jqueue.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/jqueue.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/l137_interrupt.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/l137_interrupt.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/l137_interrupt.c"
    'Finished building: E:/xx/TEL_Smart_DspV1_20111101/src/l137_interrupt.c'
    ' '
    'Building file: E:/xx/TEL_Smart_DspV1_20111101/src/main.c'
    'Invoking: Compiler'
    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define="_DEBUG" --define="CHIP_OMAPL137" --define="_INCLUDE_NIMU_CODE" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/OMAPL137_AUDIO/Debug" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/CCSTUD~1.3/C6000/csl/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/include" --include_path="E:/xx/TEL_Smart_DspV1_20111101/iview_inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/inc" --include_path="E:/xx/TEL_Smart_DspV1_20111101/tcf" --include_path="E:/xx/TEL_Smart_DspV1_20111101/src/filters" --include_path="E:/xx/TEL_Smart_DspV1_20111101/ndk/example/tools" --display_error_number --issue_remarks --verbose_diagnostics --diag_warning=225 --write_diagnostics_file --no_warnings --abi=coffabi --obj_directory="E:/xx/TEL_Smart_DspV1_20111101/Debug" --preproc_with_compile --preproc_dependency="src/main.pp"  "E:/xx/TEL_Smart_DspV1_20111101/src/main.c"

  • In the above build output it does look like you have disabled optimization. It is hard to explain why exactly the breakpoint does not get set at the expected line without actually being able to reproduce the issue. One thing I would suggest is to take a look at the assembly listing file (can be generated by adding -ss to the compile build options). This file should list the line number information and can give an idea on whether there are assembly instructions that correspond to a particular line of C source. If a C source does not have debug information associated with it you would not be able to set a breakpoint at that line.

    Also you could try setting the breakpoint from the disassembly view instead of the C source view and see if that helps.

  •  

    When I setting the breakpoint from the disassembly at  0xC206B9E0: EB00209F  BL         GPIO_setDirection,

    the source break on while(1). as follows.Can you find some error from assemb?