cancel
Showing results for 
Search instead for 
Did you mean: 

STVD 4.1.2 STM8 simulator error

fggnrc
Associate II
Posted on July 15, 2009 at 18:45

STVD 4.1.2 STM8 simulator error

3 REPLIES 3
fggnrc
Associate II
Posted on May 17, 2011 at 15:03

Dear Sirs,

the attached project is a subset of my project.

When I use the STVD to simulate a STM8S207C8, strange things happen near row 129 of main.asm

It seems that the synhronization between the simulator and the STVD interface is lost, and this makes STVD useless.

Regards,

EtaPhi

robertjamier9
Associate II
Posted on May 17, 2011 at 15:03

Dear Customers,

The assembler absolute list file main.lst is incorrect. Some instructions are not optimized in the list file while they are in the code.

For example:

LDW {CoRoutineSP+{Sicur_ID shl 1}},X

is assembled in the list file as CF0006

while in the code it is assembled as BF06.

As STVD uses the absolute list file to get debug information, it is lost.

However there is a workaround: use #define instead of EQU. Just replace all EQUs by #defines in glob.inc.

Regards,

RJ

fggnrc
Associate II
Posted on May 17, 2011 at 15:03

Robert,

many thanks for your fast reply, as always...

Regards,

EtaPhi

[ This message was edited by: EtaPhi on 16-07-2009 05:32 ]