2011-04-28 10:56 PM
STM8 core bug
2011-05-17 06:12 AM
Hello,
The bug only occurs when hardware stepping in some particular cases. If you execute the program without hardware stepping, it works. There are two possible workarounds if you want to step: - use software stepping (Click on ''Debug Instrument'' then on ''Stepping Mode'' and select ''Don't enter interrupts when stepping into''), - set a breakpoint on the instruction which doesn't execute correctly when hardware stepping. It also works if you set a breakpoint close to this instruction. RJ2011-05-17 06:12 AM
Robert,
I thank you for your quick reply and workaround! When I discovered this bug, it was a very bad piece of news for me, since I need to trust in my tools when I debug my code. I'm also happy that this fault lies in the interplay between STM8 hardware and the debug instrument (and not elsewhere), because now I can suppose again that the root of a fault is only in my code. EtaPhi