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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,930 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,345 次查看
Daniel_Popa
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 项奖励
回复
1 回复
1,346 次查看
Daniel_Popa
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 项奖励
回复