AnsweredAssumed Answered

Dubts, how to reset stm8s

Question asked by tuxd3v on Dec 1, 2013
Latest reply on Jun 6, 2015 by tuxd3v
Hi guys,
I am new to STM8s discovery...

I have done the following code:

stm8/

    ;mapping.asm exists ...

    segment 'rom'
    
start
    bset $5011,#0;sets PD0 to input
loop_main
    ldw X,#$FFFF
loop_delay
    nop
    decw X
    jrne loop_delay
    bcpl $500F,#0; togle port to input/output
    jra loop_main
        
    end

This will blink the led...at least it should...

the problem is..it never blink :S

In debug mode I tried to see where is the problem...and when I start debug...the PC starts in 0x6000 :S

For what I understand it should start in 0x8080...

Is there any chance to when we reset the board in CN1, it restart the PC, but the first instruction is a jra to 0x8080?? to start running the code??

Am'i  thinking correct?

In stvp I chosed the Motorola like binary file, and in program code I flashed the board...

Thanks in advance

Ps:What is Blank check??does the programmer write something in the flash or epromm??


regards
tux

Outcomes