Best way for test assembly program in stvd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-28 3:35 AM
Hello every body. I want to know what is the best way to test assembly program?? use simulator in Stvd or .......... ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-28 8:26 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-31 4:46 AM
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??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-31 5:19 AM
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:
Regards,
Max
