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.

how to quickly load a program without starting the debugger?

Other Parts Discussed in Thread: UNIFLASH

Hi,

I'm just starting out with CCS and with the Tiva launchpad platform. I was wondering if there is a quick, "single-click" command available that builds my project and programs it to the launchpad, without starting the debugger?

I often do not need the debugger's facilities when repeatedly modifying and testing small programs, I just want to see how the board behaves. Currently I need to start the debugger, wait a few seconds for it to connect and load the program, then it pauses at main() so I just press the red "stop" button to get out of debugging mode and keep editing my code (which again takes a few more seconds on my system). This seems a bit of a roundabout way to do that - In most other IDE's I'm familiar with there is a single "build and program" button. Is one available that I didn't find? if not, perhaps some script or plugin can do that?

thanks,
Guy.

  • Hi Guy,

    In short you don't want to debug but just build and load, right?

    The closest thing you can get is, build it using CCS and load it using Uniflash (2 steps).

    Regards,

    Gautam 

  • Hi Guy,

    You need to start the debugger. It is how you achieve communication with the target via CCS. If you want to simplest way to load the program on to the target, I suggest looking at loadti. It is a command line utility that you can use to quickly load (and run) programs on to the target. By default it will run the program after load but you can disable that be using the -l option (load only):

    http://processors.wiki.ti.com/index.php/Loadti

    Thanks

    ki

  • thanks for all the answers. so, it looks like there is no simple built-in solution. perhaps someone made (or cares to make) a script for one-button build+program...?

  • Guy - please describe what exactly you would like. Because it sounds like the "debug" button doesn't most of what you want already and you simply don't want to have to manually press the terminate button. Is that right? Also do you want to do this from the GUI or is the command-line enough (or even preferred)?

  • I guess it does do most of what I would like, except saving a button press. I was thinking though that maybe if it was one step without running the debugger it would also be faster. I guess it's not such a big deal (takes about 20 seconds in my system, from pressing "debug" to being back in the edit mode). it does end up taking up to 50% or so of the iteration time when doing rapid, small test iterations (i.e. when changing just a single line of code and wanting to see quickly check its effect).

  • What I would do is create a DSS script that you can load into the Scripting Console. And have the script create a little menu item that you can press to do everything you want. That would be to all the steps of the 'Debug' button with an added command that will terminate the debugger.

    This will require you to spend a bit of time getting familiar with both DSS and the Scripting Console but both features are something handy to be knowledgeable of:

    DSS: http://processors.wiki.ti.com/index.php/Debug_Server_Scripting

    Scripting Console: http://processors.wiki.ti.com/index.php/Scripting_Console

    ki