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: CCS script debugger options



Tool/software: Code Composer Studio

Hello.

Using TDA2xx.

on the debug perspective, there is an option under run->advanced->Enable Halt On Reset. (for the CortexA15_C0)

I would like to enable this option from the script in the debugger. Can you help explaining how to achieve that?

Also from some reason all the script commands that involve print options returns nothing so there is no way to know what options are actually available

(e.x debugSession.options.printOptions("*")  ) 

Can you explain how to get a list of available options ?

Thanks

Guy

  • Guy,

    Our scripting experts are out of the office until after the New Year. We will respond to this as soon as possible upon their return.
    Thank you for your patience.
  • Guy Mardiks said:
    (e.x debugSession.options.printOptions("*")  ) 

    the proper parameter to pass to the API would look like below.

    debugSession.options.printOptions(".*")  

    This would generate a list that that would look like the below:

    Boolean Option:
    id: ClearBreakpointsOnLoad
    name: Program/Memory Load Options.Program/Memory Load Options.Disable all breakpoints when loading a different program
    value: true
    Boolean Option:
    id: AddCEXITbreakpointAfterLoad
    name: Program/Memory Load Options.Program/Memory Load Options.Halt at program exit for TI compilers (requires a breakpoint)
    value: true
    Boolean Option:
    id: AddCIOBreakpointAfterLoad
    name: Program/Memory Load Options.Program/Memory Load Options.Enable CIO function use (requires setting a breakpoint)
    value: true
    Boolean Option:
    id: AddSemiHostingBreakpointAfterLoad
    name: Program/Memory Load Options.Program/Memory Load Options.Enable Semihosting (requires setting a breakpoint at SVC_Handler )
    value: true
    Radio Button Option:
    id: VerifyAfterProgramLoad
    name: Program/Memory Load Options.Program/Memory Load Options.Verification Options
    value: Fast verification
    choices:
    Full verification
    Fast verification
    No verification
    Boolean Option:
    id: HaltOnConnect
    name: Program/Memory Load Options.Connection Options.Halt the target on a connect
    value: true
    Boolean Option:
    id: AutoResetOnConnect
    name: Program/Memory Load Options.Connection Options.Reset the target on a connect
    value: false
    Boolean Option:
    id: AutoConnectIfChildConnects
    name: Program/Memory Load Options.Connection Options.Auto connect if a child connects
    value: true
    Boolean Option:
    id: DisableIntWhileAsmStepping
    name: Program/Memory Load Options.Disable interrupts.When assembly stepping
    value: true
    Boolean Option:
    id: DisableIntWhileSrcStepping
    name: Program/Memory Load Options.Disable interrupts.When source stepping
    value: false
    Boolean Option:
    id: DisableIntWhileRunning
    name: Program/Memory Load Options.Disable interrupts.When running
    value: false
    Boolean Option:
    id: ResetOnRestart
    name: Program/Memory Load Options.Reset the target on a program load or restart
    value: false
    Boolean Option:
    id: RestartOnSymbolLoad
    name: Program/Memory Load Options.Restart the target on a symbol load as well as a program load
    value: false
    Boolean Option:
    id: UseLegacyStopMode
    name: Auto Run and Launch Options.Realtime Options.Halt the target before any debugger access (will impact servicing of interrupts)
    value: false
    Boolean Option:
    id: AllowInterruptsWhenHalted
    name: Auto Run and Launch Options.Realtime Options.Enable realtime mode (critical interrupts serviced when halted, rude/polite mode...)
    value: false
    Boolean Option:
    id: PoliteRealtimeMode
    name: Auto Run and Launch Options.Realtime Options.Enable polite mode (respect HPI, DBGM and FRAMEID)
    value: true
    String Option:
    id: AutoRunToLabelName
    name: Auto Run and Launch Options.Auto Run Options.Run to symbol
    value: main
    Boolean Option:
    id: AutoRunToLabelOnRestart
    name: Auto Run and Launch Options.Auto Run Options.On a program load or restart
    value: true
    Boolean Option:
    id: AutoRunToLabelOnReset
    name: Auto Run and Launch Options.Auto Run Options.On a reset
    value: false
    Boolean Option:
    id: ConnectOnStartup
    name: Auto Run and Launch Options.Launch Options.Connect to the target on debugger startup
    value: false
    Boolean Option:
    id: EnableInstalledBreakpoint
    name: Auto Run and Launch Options.Launch Options.Restore breakpoints from previous session
    value: false
    Boolean Option:
    id: IgnoreSoftLaunchFailures
    name: Auto Run and Launch Options.Launch Options.Continue debug launch if target connection or program load fails
    value: true
    Radio Button Option:
    id: ModuleDebuggingEnabled
    name: Misc/Other Options.OS Aware Debug Options.Automatically load module symbols
    value: Never
    choices:
    Never
    When modules are loaded and unloaded (intrusive on target execution, and requires a patched kernel)
    Whenever halted in the module load/unload routines (you must manually set breakpoints in the appropriate routines for this to work)
    String Option:
    id: ModuleNameList
    name: Misc/Other Options.OS Aware Debug Options.Module name list
    value:
    String Option:
    id: ModuleSearchPath
    name: Misc/Other Options.OS Aware Debug Options.Module symbol search path
    value:
    Boolean Option:
    id: PreventStepIntoAsm
    name: Misc/Other Options.Automatically step over functions without debug information when source stepping
    value: true
    Boolean Option:
    id: LowPowerRunMode
    name: Misc/Other Options.Allow power transitions while running if supported (low power running)
    value: false
    Boolean Option:
    id: CIOTimestamp
    name: Misc/Other Options.Add timestamp information to target output
    value: false
    Boolean Option:
    id: EnableSoftwareBreakpoints
    name: Misc/Other Options.Allow software breakpoints to be used
    value: true
    String Option:
    id: FileIODefaultDirectory
    name: Misc/Other Options.Default directory for File IO:
    value:
    Radio Button Option:
    id: SyncBreakpointsAndSymbols
    name: Misc/Other Options.When added to a sync group:
    value: Synchronize breakpoints and symbols (with like cores), as well as execution
    choices:
    Synchronize execution only
    Synchronize breakpoints and symbols (with like cores), as well as execution
    Radio Button Option:
    id: TMS470R15X_DisassMode
    name: TMS470R15X.Cortex A15 Disassembly Style Options.Disassembly Mode
    value: Mixed ARM/Thumb
    choices:
    Mixed ARM/Thumb
    ARM Only
    Thumb Only

    When I look through this list, I do not see the option you inquired about. It may not be part of the standard debugger options. I will need to investigate further to see if that option is exposed elsewhere.

    Thanks

    ki

  • Hello, Thanks.
    From some reason when i try to do the same on the script window of CCS it returns nothing.
    Any idea why could that be?

    Thanks
    Guy
  • The Scripting Console is not a true system console but a Rhino JavaScript Shell. Hence why you do not see the output.
  • I've been informed that there is a way to enable/disable this option with a GEL call - GEL_SetWaitInResetMode

    GEL_SetWaitInResetMode(1) to enable it and GEL_SetWaitInResetMode(0) to disable it.

    You can make GEL calls from DSS:
    software-dl.ti.com/.../sdto_dss_handbook.html

    Thanks
    ki
  • Hello, Thank you.
    Is there some way to enable output from the CCS debug console? maybe open another console window onto which the output will be directed but still be able to use the debug script from the CCS environment?

    Thanks
    Guy
  • This has been requested in the past but would require quite a bit of effort to support. It is worth evaluating the request again but as of now, there is no support for it.