AnsweredAssumed Answered

CodeWarrior - debugger shell automation script

Question asked by Romain BENET on Apr 7, 2016
Latest reply on Apr 8, 2016 by Romain BENET



I need your help for my problem.


Information about my project:



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,