I was able to connect Hi-Wave debugger to a HC11 target. The single step works. But it does not work properly using a break point. From the trace (serial protocol trace with the debugger and target), it does not decrement the return address by 1 in the stack as was done in the single step. I was using version 3 of the debug monitor which came with Metrowerks CodeWarrior software package. Is this a known issue? How can I fix this problem since I don't have source code of Hi-Wave debugger.
It was a bug in my debug monitor. Now I can set breakpoints or using single steps in the Hi-Wave debugger connected to a target. The debug monitor which comes with Metrowerk works with minor modification.
I will be testing interrrupts other than "swi" next. Thanks for all the good suggestions and helps.
I did not use HC11 ROM monitor since a while, but as far as I remember, when debugging through ROM monitor, you HAD TO make sure you enable the interrupt somewhere in the main function.
It was a bug in my debug monitor. Now I can set breakpoints or using single steps in the Hi-Wave debugger connected to a target. The debug monitor which comes with Metrowerk works with minor modification.
I will be testing interrrupts other than "swi" next. Thanks for all the good suggestions and helps.
Dear HK168 I have had some experience with HC11 and CW (as teacher). It was often the case that after a breakpoint the execution did not react on the RUN command. Sometimes a single step command followed by RUN worked. I noted often that the debugger did not work in interrupt routines. That's why i am not very satisfied with monitor debugging programs in general (speaking with about 25 years of experience, starting with 8085 and Z80 stuff). If possible change to HC(S)08 or HC12, since the HC11 is neither a fish nor a bird (German saying!) (i mean the HC11 is not really a 16bit MPU).
Sorry but i have no more access to the HC11 system.