Download Flash Magic Manual

Transcript
Flash Magic GUI and Command Line Manual
Chapter 14 – Scripts
The Flash Magic Production System contains support for scripts written in the Python
programming language. The scripts can be executed by Flash Magic and have full access to
the low level API, allowing any ISP operation to be performed. This allows automated
testing and programming to be performed, for example on a production line.
Simple scripts may be combined into more complex test scripts, culminating in compelete
test suites.
Scripts are simple ASCII files that can be easily shared between users.
14.1 Environment
The scripts environment uses Python 2.4 with the complete standard libraries available. This
allows scripts to not only perform ISP operations, but generate test report files, construct
custom hex files, access the internet for test data, commands or download hex files, etc.
All output from the script is displayed in a window and the user can be prompted for any
input needed, for example entering test parameters or choosing from a menu of options.
Scripts can also have user defined parameters passed to them, allowing a script to be fully
automated but with customizable options.
14.2 Getting Started
The scripts interface is available by choosing Scripts… from the Tools menu.
Page 107