can we debug an elf executable, "generated outside the Codewarrior IDE"?

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

can we debug an elf executable, "generated outside the Codewarrior IDE"?

3,419 次查看
metro
Contributor I
hello,
 
 Is it possible to load an elf file, generated from command line and debug in codewarrior ide using debugger script?
 
i tried to use keyword "debug" followed by elf file:
 
eg:  debug d:\myelf.elf
 
but it was showin that a project needs to be opened. So i gave :
eg:  project -o d:\proj.elf.mcp  
       debug d:\myelf.elf
 
but still the same error.
 
Could anyone help?..
 
Thanks..
标签 (1)
标记 (1)
0 项奖励
回复
6 回复数

1,089 次查看
CrasyCat
Specialist III
Hello
 
I would first need to understand which CPU and CodeWarrior version you are running.
 
- Which CPU are you targeting (Coldfire, MPC5xx, ..)
- Which version of CodeWarrior are you using?
  To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog.
 
CrasyCat
0 项奖励
回复

1,089 次查看
metro
Contributor I
hello,
 
Ide version is:
CodeWarrior Development Studio for ColdFire Architectures Version 6.3,Build 14
 
Processor: MCF5282
 
 I am generating a .elf file eg: code.elf from command line.
I need to "automate debug process"  by using a debugger script. The keyword:
        debug c:\code.elf
is not working here.
 
Thanks in advance.. 
 
0 项奖励
回复

1,089 次查看
CrasyCat
Specialist III
Hello
 
I have checked the Command Window on CodeWarrior for ColdFire V6.4 ( I do not have a V6.3 installation right now).
But anyway it should word in the same way.
 
If you ask for help on the command debug (help debug) you see following text:
"COMMAND    cmdwin::debug - debug a project
SHORTCUT   cmdwin::de
SYNTAX     DEBUG [project_file(*.mcp) [number of projects]]
EXAMPLES
           debug 
            Debug the opened default project.
           debug des.mcp
            Open the project des.mcp to debug. "
 
So that means for ColdFire you need to specify a .mcp file for debugging (You cannot start from a .elf file).
 
In order to debug an elf file I would recommend to process as follows:
  1- create a project for the existing  .elf file
  2- start debugger.
 
The corresponding .tcl file looks as follows:
 
  project -o "c:\\code.elf"
  debug 
 
I hope this helps.
 
CrasyCat
0 项奖励
回复

1,089 次查看
metro
Contributor I
hello crasycat,
 
thanks for the reply.
can we do  project creation from command line?
 
Thanks in advance
 
0 项奖励
回复

1,089 次查看
CrasyCat
Specialist III
Hello
 
According to the "IDE_5.7_Automation_Guide.pdf" you can start the IDE and ask it to start a .tcl script using following command:
 
  cmdIDE /d scriptfile
 
cmdIDE is an executable file located in {Install}\bin directory.
 
The scriptfile should then contain the command I was specifying in my previous post.
 
I hope that helps.
 
CrasyCat
0 项奖励
回复

1,089 次查看
metro
Contributor I
 
thanks crassycat...
0 项奖励
回复