cancel
Showing results for 
Search instead for 
Did you mean: 

STM8 core bug

fggnrc2
Associate II
Posted on April 29, 2011 at 07:56

STM8 core bug

2 REPLIES 2
Nickname14202_O
Associate II
Posted on May 17, 2011 at 15:12

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.

RJ

fggnrc2
Associate II
Posted on May 17, 2011 at 15:12

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