Skip to main content
Visitor II
March 28, 2017
Question

Best way for test assembly program in stvd

  • March 28, 2017
  • 1 reply
  • 896 views
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 .......... ???

    This topic has been closed for replies.

    1 reply

    ST Employee
    March 29, 2017
    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

    Visitor II
    March 31, 2017
    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??

    ST Employee
    March 31, 2017
    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