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/TM4C129ENCPDT: View disassembly without flashing the part?

Part Number: TM4C129ENCPDT


Tool/software: Code Composer Studio

Is it possible to view disassembly in CCS without starting a debug session and flash programming the part?

  • If you want to read the memory back from the device to disassemble it then it is necessary to start a debug session.  You do not need to flash the device to do this.

    Open the Target Connnections View from the View menu.  Find the .ccxml file for project.  Right click and select to launch.  This will launch the debugger for that configuration but not touch the target.  Next click on the connect button to connect to the device.  Now you can use the memory and dissassembly view.  You can also load the symbol file if you want by clicking on the down arrow beside the load button and select load symbols.  Browse to your .out file.

    If you just want the assembly code for a program file you can generate this as part of your build.

    Regards,

    John

  • Thank you, JohnS. This answered my question and then some!

    In particular, the following is extremely useful:

    JohnS said:

    If you want to read the memory back from the device to disassemble it then it is necessary to start a debug session.  You do not need to flash the device to do this.

    Open the Target Connnections View from the View menu.  Find the .ccxml file for project.  Right click and select to launch.  This will launch the debugger for that configuration but not touch the target.  Next click on the connect button to connect to the device.  Now you can use the memory and dissassembly view.  You can also load the symbol file if you want by clicking on the down arrow beside the load button and select load symbols.  Browse to your .out file.

    It often bothered me that starting a debug session would re-flash the part, when often I know that it is not necessary as the program has not changed.

    Also, sometimes I stop a debug session and then want to get back in. The above procedure makes that possible.

    I thought there must be a way to do that but the procedure to do it is not obvious. Thank you very much for showing the way!

    One important note: At least in CCS version 9.3.0.00012, it is not called "Target Connections" in the view menu. It is called "Target Configurations."

    For my own reference (and anyone else who comes across this thread in the future):

    The "Connect" button:

    And "Load symbols file" (down arrow next to button with the curly braces):

    Thank you once again!