In Circuit Debugging

From Flowcode Help
Revision as of 13:28, 2 September 2013 by ReeceL (talk | contribs)
Jump to navigationJump to search

<sidebar>Sidebar: Advanced Features</sidebar> It is now possible to do in circuit debugging using Flowcode and either our v7 EB006 or our ICD tool hardware. The ICD feature is enabled via the Project Options window. Once enabled a user can toggle simulation and ICD mode via a tick box from the 'Debug' menu (Debug > ICD Mode).


When ICD is enabled you must re-program the target device to allow the ICD 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.


Breakpoints, single stepping, and other simulation features such as the Simulation Debugger also work seamlessly with the ICD functionality.


The ICD dll file (dll_dbg_icd.dll) must be enabled in the Project Options on the Debug Options tab (Project Options... > Debug Options).

Once enabled you can configure the ICD Options by clicking the 'Options...' button, this will open a new window and allow you to alter the 'Breakpoint count', 'Callstack depth', 'Communication speed' as well as changing the 'Sample rate' and more, you can even override the ICD pins in this window.

Gen In Circuit Debugging ICD Flowchart.png