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.

Code composer studio debugging LM4F120

Other Parts Discussed in Thread: ENERGIA

I've finally dusted of my LM4F120 for a project and i'm trying to modify the stellaris mod player (http://mobile4dev.blogspot.com.au/2012/11/stellaris-launchpad-mod-player.html) .

I'm using the latestCCSv6  6.0.1.00040

I can build and run the program fine but i'm struggling to modify it. My goal is to stop it looping and to have it sleep and wake on button press, run once and return to sleep waiting for another button press. Ambitious for a first run at a Ti Micro and CCS???? I hope not.

anyway

My problem is that I'm trying to output debugging messages to either the debug console or the uart terminal but attempts to do either cause the program to freeze. 6 hours of searching told me that I can just use printf to output to the debug console but that seems to be false because putting a printf after the declarations before any other code locks up the device. There's no documentation on debugging; all documentation talks about using external debugger indicating that perhaps the inbuilt one isn't that good.

I know that I can do what I want in terms of programming. I just need to get the debugging interface to work so I can figure out how the program works.

  • Hi David,

         I have not used printf to output messages to uart terminal. But, I have used UARTSend() and UARTprintf(), to send text to UART Terminal.

        You can see, how those UART API's are used at Tivaware example program's uart_echo and hello.

    - kel

  • The code has UARTprintf() used in it and I opened a terminal window and configured it correctly but all that appears is garbage (when anything appears at all). I know that the UART is working because I can shutdown CCS and open energia and connect the serial console and see the output but CCS debugger seems to lock up the virtual com port and kill any attempted UART communication when using CCS. Unfortunately the program is too complex for a TI noob like me to port to energia.

    The same happens with uart_echo. No output to a terminal with CCS but shut it down and I can access it in the energia serial console so there's something very wrong with CCSv6 and the serial terminal. Settings are correct 115200, 8, N, 1

     

  • Hi David,

         I have not used CCS serial terminal if there is any. But, I assure that the uart_echo works with other uart terminal like Tera Term and Putty.

    - kel

  • I fired up putty and I can use it without shutting down CCS so I'm where I need to be. Thanks for your help.

  • David,

       No problem at all. Thanks also for sharing your project,

    - kel