The In Circuit Debugger (ICD) toolbar
is only visible when a suitable ICD
model is available, which is dependent on the selected microcontroller.
ICD Compile
The ICD compile button works
in exactly the same way as the main MicroCode Studio compile
toolbar button, with the exception that additional debug information
is automatically included in the build. ICD compile will generate
a hex file, which you then have to manually program into your
microcontroller. Alternatively, press F11 to automatically start
your chosen programmer after compilation has finished. For more
information on setting up a programmer, refer to the Using
a Programmer with MicroCode Studio section. Remember, you
can only interface to the ICD after building your project with
either ICD compile or ICD compile and program.
NOTE : Pressing the compile button will automatically
save all open files to disk. This is to ensure that the PICBasic
compiler is passed an up to date copy of the file(s) your are
editing. In addition, the generated *.hex file programmed into
your MCU will only work under the control of the ICD process.
It will not work independently of the ICD process. If you do
not intend to use the ICD, use the compile button instead.
ICD Compile
and Program
The ICD compile and program button
works in exactly the same way as the main MicroCode Studio compile
and program toolbar button, with the exception that additional
debug information is automatically included in the build. ICD
compile and program will generate a hex file and then automatically
start your chosen programmer.Ý For more information on
setting up a programmer, refer to the Using
a Programmer with MicroCode Studio section. Remember, you
can only interface to the ICD after building your project with
either ICD compile or ICD compile and program.
NOTE : Pressing the compile button will automatically
save all open files to disk. This is to ensure that the PICBasic
compiler is passed an up to date copy of the file(s) your are
editing. In addition, the generated *.hex file programmed into
your MCU will only work under the control of the ICD process.
It will not work independently of the ICD process. If you do
not intend to use the ICD, use the compile and program button
instead.
ICD Control
The control buttons enable you
to run, stop, pause and step the ICD. Remember, you must build
your project with either ICD
compile or ICD compile and
program before pressing the run button.Ý When the
ICD has started, you can select the pause button to suspend the
ICD, allowing you to step through the program line by line. Alternatively,
you can have the pause button in the down position before starting
the ICD. If a breakpoint
is reached during program execution, MicroCode Studio will automatically
pause the ICD.
ICD Communications Port
The communications port drop
down box enables you to select the serial port used by the ICD
to communicate with the target microcontroller. The ICD only
communicates with a PIC microcontroller using its hardware USART.
For details on setting up your hardware for use by the ICD, please
refer to the Setting Up Your
Hardware section.
ICD Animate
When the animate button is down
(default), MicroCode Studio animates program execution. That
is, you will see each program line highlighted in the main
editor window as it is being executed.
In addition, the ICD Explorer
is updated with the current values of all variables, SFRs, memory
and EEPROM. When the animate button is in the up position, MicroCode
Studio will not animate program execution.Ý Neither the
main editor window or the
ICD Explorer is updated.
The ICD will animate at different
speeds, depending on both the OSC setting of the target device
and also the speed of the host PC. You will generally get better
update speeds when using higher OSC settings.
ICD Breakpoint
Breakpoints are used to stop the execution of a
program at any given point.Ý The MicroCode Studio ICD
enables you to add multiple breakpoints.
You can even have breakpoints in PICBasic include files. To add
a breakpoint, move the editor cursor to the line requiring a
breakpoint. Next, press the ICD breakpoint button. To remove
the breakpoint, press the button again. You can also add a breakpoint
by using the left mouse button and clicking on the gray bar located
to the left of the MicroCode
Studio editor.
|