cancel
Showing results for 
Search instead for 
Did you mean: 

my problem is stvd and compile with st assembler linker

mahdi honarvar
Associate II
Posted on March 25, 2017 at 09:38

Hello. I want compile a simple program that is :

stm8/

segment 'rom'

PD_ODR EQU $500F

PD_DDR EQU $5011

PD_CR1 EQU $5012

;///////////////////////

bset PD_DDR,#6

bset PD_CR1,#6

loop2

bset pd_odr,#6

bres pd_odr,#6

jp loop2

end

when I compile this program Stvd get a lot of error that is :

0690X00000603ieQAA.jpg

can any one help me??

my windows is 7 and 64bit and I use from STVD and st assembler linker.

Thanks

5 REPLIES 5
Arlet Ottens
Associate II
Posted on March 25, 2017 at 12:24

You need to start your lines with spaces or tabs, otherwise the assembler assumes you're defining a label.  Like so:

stm8/

    segment 'rom'

PD_ODR EQU $500F

PD_DDR EQU $5011

PD_CR1 EQU $5012

;///////////////////////

    bset PD_DDR,#6   

   bset PD_CR1,#6

loop2

   bset PD_ODR,#6

   bres PD_ODR,#6

   jp loop2

   end
Posted on March 25, 2017 at 23:24

Exactly. Thank you very much. can you help me about simulating?? when I build the program and press the start Debug I think I should press step into but when I press step into I don't see any change in simulating.if you have a video about simulating can you send me ?? thank you

Posted on March 25, 2017 at 23:26

I don't know. I've never used the simulation.

Posted on March 26, 2017 at 07:50

So how you test your program??

Posted on March 26, 2017 at 08:36

Load it in the device.