7
MachXO3 Starter Kit User Guide
Programming a Demo Design with the Lattice Diamond Programmer
The demonstration design is pre-programmed into the MachXO3 board by Lattice. If you have changed the design
but now want to restore the board to factory settings, use the procedure described below.
To program the MachXO3 device:
1.
Install, license and run Lattice Diamond software. See
www.latticesemi.com/latticediamond
for download and
licensing information.
2.
Connect the USB cable to the host PC and the MachXO3 board.
3.
From Diamond, open the Blink.ldf project file.
4.
Click the
Programmer
icon.
5.
Click
Detect Cable
. The Programmer will detect the cable (Cable: USB2, Port: FTUSB-0). If the cable is not
detected, see the Troubleshooting section.
6.
Click
Device Properties
.
7.
Change Access Mode to
SPI Flash Programming
.
8.
Choose
SPI Flash Background Erase, Program, Verify
operation.
9.
Select
Blink_impl1.bit
programming file.
10. Under SPI Flash Options, change Vendor to
SPANSION
and change Device to
SPI-S25FL204K
or
S25FL208K
(as appropriate). Click
OK
.
11. Click the
Program
icon. When complete,
PASS
is displayed in the Status column.
12. Change Access mode to
NVCM Programming Mode
and
NVCM Refresh
, then click
Program
(or power-
cycle the Starter Kit board) to initiate a re-boot from the SPI flash.