Is it possible to run a script on hitting a breakpoint?

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

Is it possible to run a script on hitting a breakpoint?

551 次查看
twp
Contributor III

We are debugging a system that drives DC motors with a feedback system.  If we put a break point in a task other than the motor driving task it is possible that one of the motor drive outputs was on at the time and the motor will continue to spin while debugging.  This causes a fault in our system that prevents further operation.

 

Is it possible to run a script from CodeWarrior on hitting a breakpoint that could write to the pin state registers and stop the motor?

 

Many thanks,

 

Tom.

标签 (1)
0 项奖励
2 回复数

408 次查看
BlackNight
NXP Employee
NXP Employee

Have a look here, this might give you an idea:

Breakpoints with Special Effects | MCU on Eclipse

0 项奖励

408 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

in order to help you, please let us know:

1. your chip part number

2. your CW verson

thanks!

0 项奖励