Thursday 21 March 2013

Preparing a Debug Session


Preparing a Debug Session

For the purposes of this documentation we will use the calculator project as given in the samples directory of
the Proteus installation. A guide to configuring the applications is given below:
·Start up ISIS and load the Keil Calculator sample design. Typically this can be found in
C:\Program Files\ Labcenter Electronics\Proteus 5.2 Professional\Samples\C51 Calculator\
Note that if you have the demonstration version of the Proteus software any alteration to the design will
disable the simulation functionality.
·Select the Use Remote Debug Monitor option from the Debug menu. A message to the effect that the
Virtual Debug Monitor is enabled should appear on the status line (at the bottom of the application
window). If you get error messages it is most likely that there is a problem with your TCP/IP
configuration.
·Start up the Keil environment and load in the project CALC.UV2 which, by default, can be found via the
above path. If you are using the demonstration version of the Keil software note that it is limited to 2K
code. Should you decide to change the code and exceed this limitation the program will not compile.
·Invoke the Options for Target ‘Target 1’ command from the Project Menu.
·Select the Debug tab of this dialogue form and change the selection from the Use Simulator option to
the Use Keil Monitor-51 Driver option on the right hand side of the dialogue form.
·Change the combo-box to select the Proteus VSM Monitor-51 Driver option. If you do not have this
option please refer to the instructions above for setting up the installations.
·If you intend on running ISIS on a second computer, click the Settings button and enter the IP address
or DNS name of the target computer into the Host IP Address field.
·In most circumstances (and for the current demonstration) you should select Load Application at Startup
and Go Until Main. Selecting the former means that it is not necessary to specify the program file for the
8051 model in ISIS as UV2 will load the program into the model at the start of each debugging session.
The Keil configuration Dialogue form showing the correct setup for debugging in conjunction with Proteus
VSM.
You should now have a project loaded in Keil which is configured to control a debugging session on the
circuit loaded in ISIS.

No comments:

Post a Comment