cancel
Showing results for 
Search instead for 
Did you mean: 

Best way for test assembly program in stvd

mahdi honarvar
Associate II
Posted on March 28, 2017 at 12:35

Hello every body. I want to know what is the best way to test assembly program?? use simulator in Stvd or .......... ???

3 REPLIES 3
Max
ST Employee
Posted on March 29, 2017 at 05:26

Hello,

It actually depend on your program.

The simulator is good but it will not simulate the peripherals, only the core.

If you use the peripherals in your code, you better connect a real STM8 with an STLink and use STVD to debug on hardware instead.

For example you can use one of the Discovery boards, they are not expensive and embed an STLink + a device.

Best regards.

Max

Posted on March 31, 2017 at 11:46

so we can simulate core. can you tell me about simulate line by line?? that means we can simulate line by line program?? How we can ?? do You know??

Posted on March 31, 2017 at 12:19

Basically, you need first to create or load an existing  project and compile it.

Once it compiles without errors, start the debugger using the simulator as target and use the instruction stepping buttons.

For more details, please check the documentation, it will be much more efficient than rewriting it here:

http://www.st.com/content/ccc/resource/technical/document/user_manual/e9/d3/c3/4b/2c/0b/46/f2/CD00004556.pdf/files/CD00004556.pdf/jcr:content/translations/en.CD00004556.pdf

Regards,

Max