How can i load an external .eld file using the debugger shell?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can i load an external .eld file using the debugger shell?

Jump to solution
1,256 Views
mihaiciric
Contributor II

How can i load an external .eld file in CW 10.2.9 using the debugger shell or tcl script?

 

Something similar to TI's .memory.loadProgram

 

 

I checked out StarCore DSP Architectures Targeting Manual

 

If you pass the command-line debugger a load command that

includes a filename containing the suffix .eld or .mcp, the

debugger loads the project. Otherwise, the debugger invokes

the Tcl load command.

 

However cw doesn't know the load command and instead suggests me to check the TCL documentation despite using it with a *.eld file

Labels (1)
0 Kudos
1 Solution
671 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Mihai,

The documentation seems to contains an issue/bug in respect with this use case.

In order to load an ELD with CW Debugger Shell via TCL script, there is a dedicated command called: debug

%>help debug

COMMAND    debug - launch a debug session

SHORTCUT  de

SYNTAX    debug [[-index] <index> | [-name] <debug-config-name>]

EXAMPLES

          debug

            Start debugging using the default launch configuration, which is

            the last debugged configuration if one exists and index 0 otherwise.

          debug -index 3

            Start debugging using the launch configuration at index 3.  Type

            'launch' for the current set of launch configurations.

          debug -name 3

            Start debugging using the launch configuration named '3'.  Type

            'launch' for the current set of launch configurations.

          debug 3

            Start debugging using the launch configuration named '3'.

            If '3' does not exist then launch configuration with index 3

            will be launched.

            Type 'launch' for the current set of launch configurations.

          debug {My Launch Config}

            Start debugging using the launch configuration named 'My Launch

            Config'.  Type 'launch' for the current set of launch configurations.

My suggestion for you, is tu use: debug {My Launch Config} where My Launch Config is the name of the Debug Configuration assigned to use the ELD you want to load.

If you wish to build the project, obtain the ELD and then load that into target via CW TCL script, then you might wish to use the ECD.exe ({CW install dir\eclipse}) utility that is provided via CW instal. Details are shown in CodeWarrior Common Feature Guide.pdf under $ Tcl Support.

Let me know if you need such example in TCL.

Best regards,
Daniel

View solution in original post

0 Kudos
1 Reply
672 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi Mihai,

The documentation seems to contains an issue/bug in respect with this use case.

In order to load an ELD with CW Debugger Shell via TCL script, there is a dedicated command called: debug

%>help debug

COMMAND    debug - launch a debug session

SHORTCUT  de

SYNTAX    debug [[-index] <index> | [-name] <debug-config-name>]

EXAMPLES

          debug

            Start debugging using the default launch configuration, which is

            the last debugged configuration if one exists and index 0 otherwise.

          debug -index 3

            Start debugging using the launch configuration at index 3.  Type

            'launch' for the current set of launch configurations.

          debug -name 3

            Start debugging using the launch configuration named '3'.  Type

            'launch' for the current set of launch configurations.

          debug 3

            Start debugging using the launch configuration named '3'.

            If '3' does not exist then launch configuration with index 3

            will be launched.

            Type 'launch' for the current set of launch configurations.

          debug {My Launch Config}

            Start debugging using the launch configuration named 'My Launch

            Config'.  Type 'launch' for the current set of launch configurations.

My suggestion for you, is tu use: debug {My Launch Config} where My Launch Config is the name of the Debug Configuration assigned to use the ELD you want to load.

If you wish to build the project, obtain the ELD and then load that into target via CW TCL script, then you might wish to use the ECD.exe ({CW install dir\eclipse}) utility that is provided via CW instal. Details are shown in CodeWarrior Common Feature Guide.pdf under $ Tcl Support.

Let me know if you need such example in TCL.

Best regards,
Daniel

0 Kudos