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.

CCS/TM4C1294NCPDT: Cannot place breakpoints into cpp source

Part Number: TM4C1294NCPDT

Tool/software: Code Composer Studio

Hi All,

I have a project written in C++ with CCS  8.2.0.00007 and TI 18.1.4 TLS compiler, where I have a base class, deriving two more classes from it. Let's call them "A" and "IOResource". If I want to debug A, everything looks fine, I can place breakpoints, and can enter into the methods (pressing F5), however, if I want to debug IOResource, the debugger just fall trough the method call, and I cannot activate any breakpoints. I opened up the disassembler, view and stepping into assembly instructions, I could go into the method.

This is what I got, and when I tried to place a breakpoint, it remained inactive.

Can anybody help me to solve this issue? What did I wrong?

Regards,

Norbert

  • Hello Norbert,

    Your image didn't attach so I can't see what you wanted to show.

    What optimization settings do you have set for your project? You may want to try to reduce them and see if that helps.

    Also is the class being used at all? If not, the compiler may view it as unneeded code and not compile it.

    Those are my initial guesses as to what may be going on.
  • Hi,

    as I searched on the net, I have found a very similar thread:

    that remained without known resolution.

    The optimization is turned off in my project.

    sorry for the image,  this is one shoot about my debug session:

    so in line #62 I instantiate the subclass object, next to it the modules view.

  • Any guess? Any suggestion?
  • Norbert,

    I too suspect it may have something to do with optimization but you say it is turned off in your project?

    What are the full set of options being passed to the compiler - you can check them in the CCS build console or under Project Properties->Build->Compiler?

    Would you be able to share a simple example project that demonstrates the issue?
  • Hi,
    this is the set applied on all files:
    -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="D:/project/ipswitch/ipswitch" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include" --include_path="D:/project/ipswitch/ipswitch/driver/lwIP" --include_path="D:/project/ipswitch/ipswitch/driver/lwIP/ports/tiva-tm4c129/include" --include_path="D:/project/ipswitch/ipswitch/driver/lwIP/src/include" --include_path="D:/project/ipswitch/ipswitch/FreeRTOS" --include_path="D:/project/ipswitch/ipswitch/driver" --include_path="D:/project/ipswitch" --include_path="D:/project/ipswitch/EESCore/FreeRTOS/port" --include_path="D:/project/ipswitch/EESCore/FreeRTOS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=TARGET_IS_TM4C129_RA2 --define=SYSTEM_CLOCK_FREQUENCY=120000000 --define=PART_TM4C1294NCPDT -g --c89 --cpp_default --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi

    and particularly the compiler output of the file is:
    Building file: "../services/web/ioresource.cpp"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="D:/project/ipswitch/ipswitch" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include" --include_path="D:/project/ipswitch/ipswitch/driver/lwIP" --include_path="D:/project/ipswitch/ipswitch/driver/lwIP/ports/tiva-tm4c129/include" --include_path="D:/project/ipswitch/ipswitch/driver/lwIP/src/include" --include_path="D:/project/ipswitch/ipswitch/FreeRTOS" --include_path="D:/project/ipswitch/ipswitch/driver" --include_path="D:/project/ipswitch" --include_path="D:/project/ipswitch/EESCore/FreeRTOS/port" --include_path="D:/project/ipswitch/EESCore/FreeRTOS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=TARGET_IS_TM4C129_RA2 --define=SYSTEM_CLOCK_FREQUENCY=120000000 --define=PART_TM4C1294NCPDT -g --c89 --cpp_default --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="services/web/ioresource.d_raw" --obj_directory="services/web" "../services/web/ioresource.cpp"
    Finished building: "../services/web/ioresource.cpp"


    I will try to create a demo project.

    Regards,
    Norbert
  • Hi Norbert,

    I'm following up to check if you had a chance to create a demo project that reproduces this issue with breakpoints. If you haven't yet had a chance or will be unable to get to this for a while, I can close out the thread for now. We could always reopen it at a later time or create a new thread and continue investigations when we have a test case available.