Skip to content

Latest commit

 

History

History

C

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

C Demo Application for IAR Visual State

IAR Visual State can generate code using the C language.

Pre-requisites

Build the application

IAR Visual State

The Visual State project is set to generate C code (with C-SPY Link support) by default.

  1. Go to ProjectCode generate (F9).

Note The generated code can be found on the local repository root directory, under the VS_coder folder.

IAR Embedded Workbench

  1. Go to FileOpen Workspace and choose C/VisualStateDemo.eww.
  2. Choose ProjectDownload and Debug (Ctrl+D) to start executing the application.
  3. Choose ViewMacrosMacros Quicklaunch.
  4. Choose <click to add> to add the following macros: pressButton1() and repeat for adding pressButton2().

image

  1. Choose ViewLive Watch.
  2. Choose <click to add> to add the following structures to the Live Watch window: LED_RED, LED_YELLOW and LED_GREEN. Unfold them to see their state member.

image

  1. Choose Visual StateSampling Buffer Capture SettingsLive.
  2. Choose Visual StateViewGraphical AnimationSystem1.
  3. Press F5 to resume the program execution.
  4. In the Macros Quicklaunch window, double-click on the Recalculate icon for executing the associated C-SPY macros that will generate the events.
vs-ewarm.mp4