Question
RUN command in STVD doesn`t work
Posted on February 26, 2017 at 10:17
Hi
I`m new with the STM8S-Discovery and the STM8S105.I usually write my code in assembler so I get a deeper touch on the micros hardware.But I encountered an issue with the STVD tool.
When I`m entering the debug mode and push the RUN button I can seethe red LED next to the USB connector blinking. But the simple code does not work.The code should make the green LED blinking, but it doesn`t.I can`t see any error message or other info.But when I set the cursor on the first command(bset) of the code with SET PC(Debug menu)
and then select CONTINUE(Debug menu) the programm works. The green LED flashes correctlyuntil I stop the programm.I can read out the code with STVP, so the micro is flashed.
But the programm does not work after unplug and replug the USB connector.What I use:ST Visual Develop 4.3.10
Windows 10STM8S-Discovery (STM8S105C6)Debeug instrument: SWIM ST-LinkThe code looks like this:
--------------------------------------------------------stm8/segment 'rom'
start bset $5011,#0loop_forever ldw X,#$FFFFloop_delay nop decw X jrne loop_delay bcpl $500F,#0 jra loop_foreverend
--------------------------------------------------------Something wrong with my handling of the STVD or micro initialising?
Thanks for any helpIvan
