GPRs and Script points

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

GPRs and Script points

跳至解决方案
1,708 次查看
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,050 次查看
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,051 次查看
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,050 次查看
JohanGamboa
Contributor I

Thanks a lot Ron.

 

Your help was very usefull to me!

 

0 项奖励
回复