To debug your state machine application on hardware with graphical feedback directly in C-SPY and to get the ability to set state machine breakpoints, you should use the visualSTATE plug-in for C-SPY and Embedded Workbench. The plugin is installed automatically for your Embedded Workbench installation, if you install visualSTATE after the installation of Embedded Workbench. We assume here that you have build, downloaded and started the example project as described in Building for CSpyLink.
Information on how to use CSpyLink can be found in the visualSTATE installation. From within visualSTATE Navigator use Help->C-SPY Link User Guide to get to this information. For now, note that the features of CSpyLink can be activated from within the C-Spy Debugger of Embedded Workbench when the application is halted (Debug->Break) through the item visualSTATE in the main menu. The example has been set up to make advantage of the capabilites of DCC communication through the JTAG link. This allows us the have a 'live' observation of data on the Target without the need to go through the CPU (which would need to be stopped for mmory accesses). Configer for this capability by selecting visualSTATE->Instrumentation Level->Sampling Buffer and visualSTATE->Sampling Buffer->Live Capture. Open some visualSTATE observer windows in C-SPY by visualSTATE->View->States andvisualSTATE->View->Actions. Do Debug->Reset to start anew, then Debug->Go to start the application on the Target.
Now use the joystick on the board to exercize the application. Using Up twice to reach the 'auto mode' of the LEDs, you should be able to see the resulting state changes and actions in the visualSTATE windows of C-SPY:
The CSpyLink does not offer the possibility in insert events into the Target such as is possible with RealLink. Both CSpyLink and RealLink can be used yo have Graphical Animation with the visualSTATE Designer. In addition, CSpyLink comes with a slew of possibilities that surpass that what can be done with RealLink. Check out, for example, how to work with advanced breakpoints on the level of visualSTATE events of states.