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

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

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

589件の閲覧回数
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 返答(返信)

446件の閲覧回数
BlackNight
NXP Employee
NXP Employee

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

Breakpoints with Special Effects | MCU on Eclipse

0 件の賞賛

446件の閲覧回数
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 件の賞賛