Loading an app onto wixels from the command line – Pololu Wixel User Manual

Page 55

Advertising
background image

You might get the following error message from make in Windows:

make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x425073)

If you get this error, please run “make -v” at a Command Prompt and make sure that you are running

GNU Make 3.82-pololu2

[https://github.com/pololu/make]

. This version of make is included in the latest

Wixel Development Bundle (see

Section 10.a

). If the output from “make -v” shows some other version

of make even after installing the Wixel Development Bundle, then you should remove that other
version of make from your PATH or reorder your PATH so that version 3.82-pololu2 is used. You can
edit your PATH environment variable from the Control Panel. See the

pololu/make wiki on GitHub

[https://github.com/pololu/make/wiki]

for more information on this problem.

Loading an App onto Wixels from the Command Line

While you are developing an app, it can be useful to have a way to load an app onto the target Wixel from
the command line. You can do this with the Makefile: plug a Wixel into your computer, open up a command
prompt, navigate to the

wixel-sdk

folder, and type

make

load_example_blink_led

. This should compile the

example_blink_led

app (if it is out of date) and then invoke the Wixel Command-Line Utility (WixelCmd) in order

to load the app onto all Wixels connected to your computer. The output should look something like this:

The example blink LED application should be running now. The Wixel’s yellow LED should be off, and the red LED
should be blinking. If that is the case, then congratulations! You have successfully compiled a program and loaded it
onto the Wixel.

You can also specify settings at the command line. Try running this command:

make load_example_blink_led S="blink_period_ms=100"

You should now see the LED blinking 5 times faster than it was before. To specify multiple settings, put other settings
inside the quotes and separate all settings with spaces.

Opening an App with the Wixel Configuration Utility

You can also open the app in the Wixel Configuration Utility if you want to. Try running this command:

make open_example_blink_led

The Wixel Configuration Utility should start running and open the example_blink_led app.

Pololu Wixel User's Guide

© 2001–2014 Pololu Corporation

10. Writing Your Own Wixel App

Page 55 of 64

Advertising