INTRODUCTION
Overview
Proteus VSM supports both the simulation and the debugging of microcontroller-based designs. In order to properly debug firmware the simulation needs to be aware of high level source lines, address information, local variables and various other information that is not contained in the raw HEX file used to program a physical device.
Fortunately, all modern compilers will produce a debug output file which contains this information and which can be loaded into Proteus for debugging purposes. There are two ways to set up a Proteus VSM project for debugging:
- Use the VSM Studio IDE. This will automatically detect and configure installed compilers to produce debug output compatible with Proteus and will send the firmware to the Proteus VSM simulator automatically.
- Work directly in Schematic Capture. In this case you must set your toolchain up yourself to produce a suitable debug file and must then apply that file to the schematic part before you simulate.
Both methods are discussed separately in the VSM Studio and Direct Debugging sections of the documentation.