GPRs and Script points

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPRs and Script points

ソリューションへジャンプ
1,694件の閲覧回数
JohanGamboa
Contributor I

Hi,

 

I'm using CodeWarrior IDE version 5.9.0, Build 2521 and the Freescale MPC8270 (Power Quicc II) microprocessor

 

Is it possible to change the value of any GPR using a script point? If that is the case, can you give me an idea how to do it

 

Thanks

ラベル(1)
0 件の賞賛
返信
1 解決策
1,036件の閲覧回数
ronco
NXP Employee
NXP Employee

Sure.  Using an Eventpoint->Script Point (described in CodeWarrior IDE 5.7 Windows User's Guide.pdf) you can do this in one of two ways.  For the first, select "Commands" as your pulldown option in the Script Point Settings window then enter something like

 

  reg GPR30 = 5

 

as your operative command to set GPR5 to the value of 5.  Any other command that works in the Command Window will also work as a Script Point command.

 

For the second method, select "Script File" as your pulldown option and select a .tcl file that does what you want to do.  You can test this .tcl script file in the Command Window using "source <script-file-name.tcl>".  I hope this helps.

 

Regards,

Ron

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,037件の閲覧回数
ronco
NXP Employee
NXP Employee

Sure.  Using an Eventpoint->Script Point (described in CodeWarrior IDE 5.7 Windows User's Guide.pdf) you can do this in one of two ways.  For the first, select "Commands" as your pulldown option in the Script Point Settings window then enter something like

 

  reg GPR30 = 5

 

as your operative command to set GPR5 to the value of 5.  Any other command that works in the Command Window will also work as a Script Point command.

 

For the second method, select "Script File" as your pulldown option and select a .tcl file that does what you want to do.  You can test this .tcl script file in the Command Window using "source <script-file-name.tcl>".  I hope this helps.

 

Regards,

Ron

0 件の賞賛
返信
1,036件の閲覧回数
JohanGamboa
Contributor I

Thanks a lot Ron.

 

Your help was very usefull to me!

 

0 件の賞賛
返信