CodeWarrior - debugger shell automation script

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

CodeWarrior - debugger shell automation script

2,418 Views
romainbenet
Contributor III

Hi,

 

I need your help for my problem.

 

Information about my project:

 

Location of my actual workspace: D:/PROJECTS/CODEWARRIOR/CODEWARRIOR_WORKSPACE

Location of my actual project into this workspace: D:/PROJECTS/CODEWARRIOR/SimpleTest

In this folder (SimpleTest) is stored many version of this project (SimpleTest0.elf; SimpleTest1.elf...).

Location of my script file: D:/PROJECTS/CODEWARRIOR

My target is a MPC5604B. CW version 10.6

I create a new debugger configuration to flash the target, name MPC5604B_PROGRAMMER

 

Undo Windows shell I open my workspace and execute a tcl script as:

C:\Users> "C:\Freescale\CW MCU v10.6\eclipse\cwide.exe" -vmargsplus -data D:\PROJECTS\CODEWARRIOR\CODEWARRIOR_WORKSPACE -Dcw.script=D:\PROJECTS\CODEWARRIOR\scriptSimpleTest.tcl

 

Then CodeWarrior is opening with this workspace and executes my script.

 

What shall I write in this script file to:

0- (if necessary open the SimpleTest project to have configuration)

1- erase previous program into my target

2- flash in debug mode (I want to play with breakpoint, read and write in memory from this script) a specifically SimpleTestx.elf file.

For steps 1 & 2 I need to use MPC5604B_PROGRAMMER for manipulating the target.

 

Thank you for your help.

 

Best Regards,

Romain

Labels (1)
0 Kudos
2 Replies

826 Views
martin_kovar
NXP Employee
NXP Employee

Hi Romain,

look at these two URLs.

http://www.tcl.tk/

http://tmml.sourceforge.net/doc/tcl/

Also look at the document in the attachment.

Regards,

Martin

0 Kudos

826 Views
romainbenet
Contributor III

Hi Martin,

Thanks for your response. But I need still your help.

With your attached file Targeting_Microcontrollers.pdf part 4.3.3 - Debug an Externally Built Microcontrollers Executable File I have create a specific workspace and project as:

Workspace at D:/CODEWARRIOR_WORKSPACE

Project entitled Debugger_MPC5604B in this workspace.

My question is how resolve following step with command into the debugger shell (as if I don't have mouse to click on any button)

1- open the project Debugger_MPC5604B if it is closing at the startup of CodeWarrior

2- add others *.elf files to the project for the same target

3- debug only one wanted *.elf file to the MPC5604B microcontroller.

Thank you for your help.

Best regards,

Romain

0 Kudos