2017-03-28 03:35 AM
Hello every body. I want to know what is the best way to test assembly program?? use simulator in Stvd or .......... ???
2017-03-28 08: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
2017-03-31 04: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??
2017-03-31 05: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