HCS12 CW3,1 debugger not able to continue after breakpoint-seems to reset. COP???

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

HCS12 CW3,1 debugger not able to continue after breakpoint-seems to reset. COP???

Jump to solution
1,695 Views
AndersJ
Contributor IV

Hi,

I use HCS12 CW 3.1 and Processor Expert 2.95.

I also use the WatchDog bean.
It is auto initialized at startup by PE code.

While debugging I have problems with the processor restarting after
having stopped it to inspect memory, registers etc.

I have tried to enable the cpu bean "BDM Debug Support",
and setting the "Stop COP and RTI in Active BDM mode" to YES,
which does not help.

I have also attempted to disable the WatchDog bean.
Since the beans "Enable in ini. code" option is always greyed
I have not managed to do this.
The entire bean can be disabled but then my code breaks since the
WD code is no longer generated.

Q1: Why does it not help to "Stop COP and RTI in Active BDM mode"?
Q2: How can I temporarily disable the WatchDog bean?
Q3: What is the corect way to make sure the debugger can be started
   and stopped without causing any disruptions in the cpu internals?
Q4: Is there anything else I might be doing wrong,
   since I cannot "continue"" after stopping at a breakpoint.

Thanks,
Anders

Labels (1)
Tags (1)
0 Kudos
1 Solution
497 Views
Lundin
Senior Contributor IV
I don't know about beans, but in C or asm, simply write 0x00 to COPCTL to disable the wdog. This register is write-once, but since you will be running in special single chip mode when debugging, that shouldn't be a problem.

An alternative is to set the flag COPWAI in CLKSEL register = "COP stops in wait mode".

View solution in original post

0 Kudos
1 Reply
498 Views
Lundin
Senior Contributor IV
I don't know about beans, but in C or asm, simply write 0x00 to COPCTL to disable the wdog. This register is write-once, but since you will be running in special single chip mode when debugging, that shouldn't be a problem.

An alternative is to set the flag COPWAI in CLKSEL register = "COP stops in wait mode".
0 Kudos