John Pizzuto

Code hangs with illegal bP 9S12 with CW3.1

Discussion created by John Pizzuto on Feb 2, 2009
Latest reply on Feb 2, 2009 by John Pizzuto
Hi:

I'm debugging the proportional part of a PID controller with a P&E USB pod connected to the target. It runs until I adjust one of the variables "too far", then hangs with an illegal bp.

The code is in an interrupt routine, so I copied it into a new project with no interrupts and it runs on the simulator, taking the appropriate branches when I adjust the variables.

Back to the target. I copied and pasted the code to the top of my program, disabled interrupts, and commented out the branches in the original code. It runs as before, then hangs with illegal bp when I adjust one of the variables beyond a certain point.

How to tell where the program is going? I didn't set any breakpoints.

Outcomes