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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

543 Views
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.

Labels (1)
0 Kudos
2 Replies

400 Views
BlackNight
NXP Employee
NXP Employee

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

Breakpoints with Special Effects | MCU on Eclipse

0 Kudos

400 Views
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 Kudos