XK-1A Development Board Tutorial
inputs the value of
tmr
‘s counter into the variable
t
. Having recorded the current
time, the statement
t += FLASH_PERIOD;
increments this value by the required delay, and the statement
tmr when timerafter(t) :> void;
delays inputting a value until the specified time is reached. The input value is not
needed, which is expressed as an input to
void
.
3.4
Build and run your project
To build and run your project, follow these steps:
1. In the
Project Explorer
, click your project to select it, and then choose the
menu option
Project
·
Build Project
(
).
The XDE builds your project, displaying its progress in the
Console
. When
the build is complete, the XDE adds the compiled binary file to the application
subfolder
bin/Debug
.
2. Create a new Run Configuration for your application named
flash
, and run it.
Show reminder..
Follow these steps:
3. Choose
Run
·
Run Configurations
.
4. In the
Run Configurations
dialog, in the left panel, double-click
XCore Appli-
cation
.
5. In the right panel, in
Name
, enter the name
flash
.
6. In
Project
, ensure that your project is displayed. If not, click
Browse
to open
the
Project Selection
dialog, select your project, and then click
OK
.
7. As there are now two applications in your project, the XDE is unable to select
one automatically. To select, in
C/C++ Application
, click
Search Project
to
open the
Program Selection
dialog, select your application binary, and then
click
OK
.
8. In
Device options
, in
Run on
, select the option
hardware
, and in
Target
,
ensure that the option “XMOS XTAG-2 connected to L1[0]” is selected.
If you did not stop your previous application running, your hardware may be
displayed as “XMOS XTAG-2 connected to None”.
9. Click
Run
to save your configuration and run it.
The XDE loads the binary onto your XK-1A, displaying its progress in the
Console
. When the binary is loaded, the
Console
is cleared.
X7366A