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.

Run Configuration Problems for Example Projects

Other Parts Discussed in Thread: LMFLASHPROGRAMMER

Hi,

I have just purchased my CCS 5 license out of the frustration from CodeBench.

I imported a blinky example project form StellarisWare.

The projects debugs perfectly (unlike in CodeBench), but when I try to run the code directly by adding the blinky.out to the run configuration and hit run,

the progress bar gets to 57% and just hangs.

I am using the EKC-LM3S9D92 development board.

Any suggestions?

  • Hi Ukie,

    could you please explain a bit more what you mean by "try to run the code directly"?  What steps are you taking and what do you do?

    Best Regards,

    Lisa

  • I go into the run configurations through the green play button.

    Then I add a new configuration and select the blink.out file from the Release folder.

    Go to the "Common" tab and check off Debug and Run. and then hit Run.

    The board is connected through the ICDI.

  • HI Ukie,

    what exactly are you trying to do?  Are you trying to create a new configuration or do something unique?  Or are you trying to simply switch to the release configuration that is default there?  You can do this easily by right clicking on the project and selecting Build Configurations->Set Active.

    Or are you simply trying to load a .out file/are you looking for a flash programmer?  You can do this in a few ways as well.

    Please keep us informed and we will do our best to help.

    Best Regards,

    Lisa

  • I am simply trying to load the program directly to the MCU without having to go through the debug.

  • Hi Ukie,

    have you tried the LM Flash programmer?  This is a stand alone tool for loading code.   No debugging, no CCS.

    http://www.ti.com/tool/lmflashprogrammer

    Does this help?

    Best Regards,

    LIsa

  • That would beat the point of simply hitting run in Code Composer...

    I have been able to do this CodeBench without problems, where CodeBench generated .launch files instead.

    Is there an issues with the way I'm trying to configure the "run"?

  • Hi Ukie,

    what I would do then is the following

    1 - create a target configuration file

    2 - launch the target configuration file

    3 - connect to the target

    4 - load the code

    Please give that a try and keep us informed.  Creating a new build configuration is not the route for doing what you wish here.

    Best Regards,
    LIsa

  • Lisa,

    You make it sound as if what I'm trying to do is unusual or the wrong process of simply loading the code to the MCU.

    I was not creating a new build configuration but rather a new run configuration since when I simply hit RUN, without a run configuration, i get this:

    There is already a target configuration file in the project.

    I went ahead and created another one anyway, but trying to launch it gives the same message as above(before).

  • Hi Ukie,

    how about doing the following

    Option 1 - press the debug button.  Normally things will stop at main and you can go to Run-Load->Load Program

    Option 2

    View->Target Configurations

    Right click on your desired target configuration and select "launch selected configuration"

    This should bring you to the debug perspective where you then do

    Run->Connect Target

    Run->Load->Load Program

    Please keep us informed.  Sorry if  my previous answer was not detailed enough.

    Best Regards,

    Lisa

  • Lisa,

    The steps you described all take me to the Debug mode.

    As I have explained originally, I can launch the the program just fine from the Debug perspective.

    These are extra steps that I am trying to avoid.

    What I want to do is a quick launch of the program by simply hitting the green run button.

    I don't see why Code Composer would not simply launch the program like CodeBench did...

  • Hi Ukie,

    unfortunately this is not supported in CCS.   The reason is that run button/configuration actually is not linked to our debugger, which you need.

    So the only ways supported are those I told you.  I double checked with development this afternoon for you as well.

    Sorry for the inconvenience and all the best with development.

    Best Regards,

    Lisa

  • In that case, what is the launch button for?

  • Hi Ukie,

    it might be because you have used the other IDE but if you only use CCS/CCS perspectives the Run button should be hidden.  Or do you mean the debug button that looks like a bug?  That builds and loads the code and starts a debug session usually running to main (default settings).

    Best Regards,
    Lisa