
MachXO2 Programming and Configuration Usage Guide
43
MachXO2 Flash Memory Programming Flow
The MachXO2 Flash memory erasure, and programming requires a specific set of steps and timing. The flow chart in this
section describes the command sequences and the timing required for successful Flash programming. The commands
and timing are common between all of the configuration ports. There are some minor variations in the protocol, but not
the timing, based on the configuration port used. Exceptions are described in the configuration port specific sections.
Figure 20. MachXO2 Flash Memory Programming Flow
Fail?
Yes
N
o
Start
Stop
Check
De
v
ice ID?
Transmit Read ID
Command (0xE0)
Check
Flags?
Delay
5 µs
B
u
sy?
B
u
sy?
ID
Match?
Transparent
Config
u
ration?
Transmit Ena
b
le
Config
u
ration Interface
(Transparent Mode)
Command (0x74)
Erase Flash
CF/UFM
Command (0x0E)
Transmit Read B
u
sy
Flag (0xF0) or Read
Stat
u
s Register
Command (0x3C)
Read 32 ID Bits
Transmit Ena
b
le
Config
u
ration
Interface (Offline Mode)
Command (0xC6)
Transmit Read B
u
sy
Flag (0xF0) and Read
Stat
u
s Register
Command (0x3C)
Transmit
Read Stat
u
s Register
Command (0x3C)
N
ote: Do not
u
se fixed delays for the Flash erase se
qu
ence.
N
o
N
o
N
o
N
o
o
N
o
N
Yes
Yes
Yes
Yes
Yes
N
o
Check
Flags?
Delay
5 µs
B
u
sy?
Transmit Read B
u
sy
Flag (0xF0) and Read
Stat
u
s Register
Command (0x3C)
N
o
Yes
1
Exit
Erase Flash
CF/UFM/FR
Command (0x0E)
To 'Check Device ID' over the I
2
C configuration port,
the MachXO2 must be in Feature Row HW Default Mode state
(that is, blank/erased), or in User Mode state with the EFB
instantiated and with the EFB 'wb_clk_i' input connected
to a valid clock source of at least 7.5x the I
2
C bus rate.
If the EFB is not instantiated (not recommended),
the I
2
C configuration port 'Check Device ID' readback data
will be 0xFFFF. To temporarily work around this limitation,
the 'Check Device ID' step can be omitted, or moved to
after the 'Transmit Enable Configuration Interface
(Transparent or Offline Mode) Command'.
Note:
Exit
Fail?
Fail?
Yes
Yes
N
o
N
o
Yes