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.

Flash to Debug?

I am using CCSv6 and TM4C123 Launchpad. Is it necessary for the device to be reflashed each time I enter debug mode even if no changes have been made to the code?

  • If CCS behaves (at all) like "pro" IDEs (Keil, IAR) you should be able to debug - either with or without downloading.  This is a simple "click-box" w/in IAR - suspect there's similar w/in yours...

    I'd state that flash life is long & high in program cycles - issue should not really be of concern...

  • Thanks, at least I know it should be possible. I am new to CCSv6 and it isn't obvious where that switch is if it exists. Does someone know?

    I agree that the flash endurance is high but I would prefer to not program unnecessarily.

  • Hello user4170980,

    Yes it is possible to do so in CCSv6. I will try to put the steps.

    1. In CCS go to View -> Target Configuration

    2. In the User Defined Section of the Target Configuration Window select "New Target Configuration"

    3. Give the Target Configuration a Name like "MyNewConfiguration.ccxml" and click "Finish"

    4. Then select the Connection, Device options and save the configuration

    5. Right Click the Target Configuration and select "Launch Selected Configuration"

    6. This will launch the debug windows. The right click in the "Debug window" and select "Connect Target".

    After this you can load the Symbol file (.out) and debug w/o re-flashing.

    Regards

    Amit

  • Well - that checklist is (somewhat) less than, "Pilot's pre-flight checklist" for Cessna twin!

    Might I compare/contrast w/IAR?  (image below)

    Simple click of either of the 2 right-most "flags" launches debug - either with or without fresh code download.  Those icons are always visible - require no, "hoop-jumping!"

    While CCS is "free" - your time/effort - not so much...  And - what if you desire to use another vendor's ARM - then what?  (IAR/Keil freely welcome...)  Free indeed...

  • Hello cb1

    Yes. CCS did start as something simple but with every version and feature addition, some of the basic easy to go features got "overly complicated"

    Regards

    Amit

  • Thank you Amit for the answer, though I have to agree with cb1, it is convoluted, but nice to know nonetheless. Is there a help manual for CCS that includes such information as this?

  • While not rising to (full/official) help manual - we're told that clockwise massage of your mid-section - while chanting - and then executing that convoluted list - has helped!  (who/where - currently unknown) 

    Gives new life/meaning to, "cobble job."  And we can only imagine the extent of such list to achieve something, "demanding."

    Enjoy!

  • Hello user4170980,

    Code Composer Studio Help has an extensive help menu. I haven't searched a lot there but generally I get the information on the help menu.

    Regards

    Amit

  • Amit Ashara said:

    Hello user4170980,

    Yes it is possible to do so in CCSv6. I will try to put the steps.

    1. In CCS go to View -> Target Configuration

    2. In the User Defined Section of the Target Configuration Window select "New Target Configuration"

    3. Give the Target Configuration a Name like "MyNewConfiguration.ccxml" and click "Finish"

    4. Then select the Connection, Device options and save the configuration

    5. Right Click the Target Configuration and select "Launch Selected Configuration"

    6. This will launch the debug windows. The right click in the "Debug window" and select "Connect Target".

    After this you can load the Symbol file (.out) and debug w/o re-flashing.

    Regards

    Amit

    Unfortunately I ticked the verified answer too soon. I achieve steps 1 to 6 but the associating of the source file is eluding me.

    I cannot associate the source files with the manual debug session no matter what I do. Here is my sequence:
    1. Bottom Right Hand Pane (Target Configurations)
    a. Right Click - MyDebugTargetConfiguration.ccxml
    b. Select - Launch Selected Configuration

    2. Top Left Hand Pane (Debug)
    There are 2 lines displayed:
    1a. MyDebugTargetConfiguration.ccxml[Code Composer Studio Device Debugging]
    1b. Stellaris In-Circuit Debug Interface_0/CORTEX_M4_0 (Disconnected Unknown)

    If I right click on 1a or 1b and select: Connect Target
    the I get a third line:
    1c. 0x00000C3A (no symbols defined for 0x00000C3A)

    I also get a disassembly view which can be stepped through, but no symbols etc. I have tried the obvious (edit source lookup)
    but cannot associate the .out file with the manual debug session.

    Your advice would be appreciated.

  • Hello user4170980

    Did you try loading the .out file already created?

    Regards

    Amit