Difference between revisions of "In Circuit Debugging"

From Flowcode Help
Jump to navigationJump to search
Line 29: Line 29:
 
==Icon Step Through==
 
==Icon Step Through==
  
Controls if the ICD functionality is active or not. When active, clicking play on the simulation will cause Flowcode to communicate with the ICD hardware and allow the execution of the simulation to sync up with the execution of the target Microcontroller.
+
When ICD is active, clicking play on the simulation will cause Flowcode to communicate with the ICD hardware and allow the execution of the simulation to sync up with the execution of the target Microcontroller.
  
 
One indication that you are indeed simulating through hardware rather than purely on-screen, is the colour of the position marker being green instead of red -
 
One indication that you are indeed simulating through hardware rather than purely on-screen, is the colour of the position marker being green instead of red -

Revision as of 11:01, 2 March 2017

<sidebar>Sidebar: Flowcode Help Overview:ChipSpecific</sidebar>


Ghost functionality (formerly ICD - In Circuit Debug) allows Breakpoints, single stepping, and other simulation features such as the Simulation Debugger to work seamlessly with the Flowcode simulation allowing you to rapidly debug your program running directly from the target Microcontroller.


When Ghost is enabled you must re-program the target device to allow the ghost specific code to be loaded onto the target device. Once the device has been programmed it will stay in a waiting state waiting for Flowcode to allow it to start running. Clicking the simulation run or step buttons in Flowcode will trigger the target device to react accordingly. Clicking the simulation stop button will reset the target device so that it restarts from the very start of the program. When disabling Ghost you again need to re-compile and program the device to allow the ghost specific code to be removed from the program.



Ghost Hardware Targets

  • Matrix EB006 PIC Multiprogrammer Versions 7, 8 and 9
  • Matrix EB064 dsPIC Multiprogrammer Version 2
  • Matrix Flowkit ICD tool - Compatible with MIAC, ECIO, FormulaFlowcode and 3rd party hardware.
  • Matrix EB091 dsPIC Programmer
  • More coming soon...


Ghost Settings

Information on setting up and using Ghost is available from the link below.

Ghost_Settings


Icon Step Through

When ICD is active, clicking play on the simulation will cause Flowcode to communicate with the ICD hardware and allow the execution of the simulation to sync up with the execution of the target Microcontroller.

One indication that you are indeed simulating through hardware rather than purely on-screen, is the colour of the position marker being green instead of red -

Icdstep.jpg

The toolbar also shows that you are in debugger mode by changing colour to green :-

ToolbDbg.jpg