Hello every body. I want to know what is the best way to test assembly program?? use simulator in Stvd or .......... ???
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.
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??
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:
ST Visual Develop User's Manual
Retrieving data ...