visualSTATE on AT91SAM7x

This article presents a 'kickstart' project for IAR visualSTATE and Embedded Workbench for ARM using an Atmel AT91SAM7x-EK development board. The example was created by me and can be downloaded here but is now also included in the visualSTATE distribution of IAR.

Overview

The example code of this project was originally conceived to illustrate some of the new functionality of visualSTATE V6.1, notably the feature readable code generation as well as the C-SpyLink feature that allows high-level statechart debugging from within the C-Spy debugger of Embedded Workbench while running the application on the physical target.

All required software and hardware are present in the KSDK-AT91SAM7X-PLUS KickStart kit that is available from IAR. This includes the development board, the J-LINK jtag debugger, required cables and power supply, next to 32kB edition of Embedded Workbench and a 20 state evaluation edition of visualSTATE.

board

Documentation

Full documentation of the example code can be found here. The basic idea of visualSTATE is that it can generate production quality code for all reactive behaviour of a system as specified by a statechart. The statechart for this demo is very simple. It defines the way in which the small joystick on the board determines the behaviour of the LEDs.

statechart

Download

Click here to download the example. Expand in a directory of your liking and follow the instructions in the doc/index.html.

Filed under code & stuff – Published 2008 May 12 – Permalink

Top