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 script automatically after starting debug session

Hey,

I am new to code composer studio and I have not found an answer to my question.

I have a new Cortex A8 and if I want to debug it, I had to run an initilization script. At the moment the GEL File is loaded automatically, but is there a way to run the script automatically after the file was loaded?

Thanks

  • Michael,

    There are a number of GEL "callback" functions that you can use to have portions of your script run automatically.  Basically if you define these functions in your loaded GEL file they will automatically be executed with the relevant action occurs.

    Examples include:

    OnTargetConnect() - runs when the target is connected

    OnReset()

    OnHalt()

    OnFileLoaded()

    OnPreFileLoaded()

    OnRestart()

    ...

    OnFileLoaded() is the one you want.  Just define this in your GEL file and have it call whatever other GEL functions you want to run automatically after a file is loaded.

    Regards,

    John